Search ServerWatch
Search ServerWatch
Search ServerWatch




Hyper-V: The Killer Feature in Windows Server 2008
It's fair to say that while many of the other new features are evolutionary, Hyper-V, by contrast, is revolutionary. Paul Rubens explores Microsoft's big step into virtualization. »

 
Download the Windows Server 2008 Trial
With Windows Server 2008 you can develop, deliver, and manage rich user experiences and applications, provide a secure network infrastructure, and increase technological efficiency and value within your organization. »

 
Reduce Complexity and Costs with Microsoft Identity and Access Solutions
Your organization depends on making digital information accessible to a broad spectrum of users over range of devices and networks. Register now for free Identity and Access Solutions from Microsoft. »

 
Virtualization from the Data Center to the Desktop
Integrated virtualization solutions from Microsoft can help you meet evolving demands more effectively as you transform your IT infrastructure from a cost center to a strategic business asset. »

Q&A with Bob Muglia: Senior VP, Server and Tools Division. Learn how Microsoft’s new interoperability principles and the steps the company is taking to increase the openness of its products.

ServerWatch > Tutorials

July 25, 2006
Tip of the Trade: Directory Indexes in Apache
By Carla Schroder

This little hack is so easy, that we have an almost have a missionary zeal to spread it to Apache Webmasters everywhere. In addition to its simplicity, it's a great convenience to visitors. How many download sites have you visited that display file indexes like this?

Index of /pub/asterisk
Icon  Name                    Last modified      Size  Description
[DIR] Parent Directory                             -   
[   ] ChangeLog-1.2.9.1       06-Jun-2006 11:37   93K  
[   ] ChangeLog-1.2.9.1-ne..> 06-Jun-2006 11:37   93K  
[   ] ChangeLog-addons-1.2.3  01-Jun-2006 17:50  3.4K  
[   ] INSTALL.README.X100P    04-Dec-2005 18:21  2.8K  
[   ] INSTALLX100P.ps         04-Dec-2005 18:21  309K  
[DIR] appnotes/               04-Dec-2005 18:21    -   
[   ] asterisk-1.2-current..> 06-Jun-2006 11:37   10M  
[   ] asterisk-1.2-netsec-..> 06-Jun-2006 11:37   10M  
[   ] asterisk-1.2.9.1-net..> 06-Jun-2006 11:37  1.5K  
[TXT] asterisk-1.2.9.1-net..> 06-Jun-2006 11:37  378   
[   ] asterisk-1.2.9.1-net..> 06-Jun-2006 11:37   75   
Now, how in the heck are you supposed to deal with this? Really, this is so last-millennium. True, most Web browsers display the full filename at the bottom as the mouse hovers over the filename. But is this not the 21st century? Must we remain trapped in a truncated filename mentality?

To find your way to the present, expose the entire filenames by adding these lines to httpd.conf:

IndexOptions FancyIndexing VersionSort
IndexOptions FancyIndexing VersionSort NameWidth=40
That sets the maximum to 40 characters, which is long enough for most sites. Naturally, this can be tweaked as desired, so you get a nice readable display like so:


Index of /linux/fedora/linux/core/5/i386/os/Fedora/RPMS
Icon  Name                                                             Last modified      Size  Description
[DIR] Parent Directory                                                                      -   
[   ] ElectricFence-2.2.2-20.2.i386.rpm                                06-Mar-2006 14:54   31K  
[   ] GConf-1.0.9-20.i386.rpm                                          06-Mar-2006 16:38  562K  
[   ] GFS-kernel-2.6.15.1-5.FC5.17.i686.rpm                            14-Mar-2006 18:48  182K  
[   ] GFS-kernel-smp-2.6.15.1-5.FC5.17.i686.rpm                        14-Mar-2006 18:48  184K  
[   ] GFS-kernel-xen0-2.6.15.1-5.FC5.17.i686.rpm                       14-Mar-2006 18:48  188K  
Now, isn't that ever so much nicer! It really is that simple; check your Apache documentation if you don't believe us.


Discuss this article
Tools:
Add serverwatch.com to your favorites
Add serverwatch.com to your browser search box
IE 7 | Firefox 2.0 | Firefox 1.5.x

Tutorials Archives




JupiterOnlineMedia

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info


Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy.

Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers

Solutions
Whitepapers and eBooks
Microsoft Article: Will Hyper-V Make VMware This Decade's Netscape?
Microsoft Article: 7.0, Microsoft's Lucky Version?
Microsoft Article: Hyper-V--The Killer Feature in Windows Server 2008
Avaya Article: How to Feed Data into the Avaya Event Processor
Microsoft Article: Install What You Need with Windows Server 2008
HP eBook: Putting the Green into IT
Whitepaper: HP Integrated Citrix XenServer for HP ProLiant Servers
Intel Go Parallel Portal: Interview with C++ Guru Herb Sutter, Part 1
Intel Go Parallel Portal: Interview with C++ Guru Herb Sutter, Part 2--The Future of Concurrency
Avaya Article: Setting Up a SIP A/S Development Environment
IBM Article: How Cool Is Your Data Center?
Microsoft Article: Managing Virtual Machines with Microsoft System Center
HP eBook: Storage Networking , Part 1
Microsoft Article: Solving Data Center Complexity with Microsoft System Center Configuration Manager 2007
MORE WHITEPAPERS, EBOOKS, AND ARTICLES
Webcasts
Intel Video: Are Multi-core Processors Here to Stay?
On-Demand Webcast: Five Virtualization Trends to Watch
HP Video: Page Cost Calculator
Intel Video: APIs for Parallel Programming
HP Webcast: Storage Is Changing Fast - Be Ready or Be Left Behind
Microsoft Silverlight Video: Creating Fading Controls with Expression Design and Expression Blend 2
MORE WEBCASTS, PODCASTS, AND VIDEOS
Downloads and eKits
Sun Download: Solaris 8 Migration Assistant
Sybase Download: SQL Anywhere Developer Edition
Red Gate Download: SQL Backup Pro and free DBA Best Practices eBook
Red Gate Download: SQL Compare Pro 6
Iron Speed Designer Application Generator
MORE DOWNLOADS, EKITS, AND FREE TRIALS
Tutorials and Demos
How-to-Article: Preparing for Hyper-Threading Technology and Dual Core Technology
eTouch PDF: Conquering the Tyranny of E-Mail and Word Processors
IBM Article: Collaborating in the High-Performance Workplace
HP Demo: StorageWorks EVA4400
Intel Featured Algorhythm: Intel Threading Building Blocks--The Pipeline Class
Microsoft How-to Article: Get Going with Silverlight and Windows Live
MORE TUTORIALS, DEMOS AND STEP-BY-STEP GUIDES