SHARE
Facebook X Pinterest WhatsApp

Apache Guide: Generating Fancy Directory Listings with mod_autoindex Page 3

Written By
thumbnail Rich Bowen
Rich Bowen
Oct 9, 2000
ServerWatch content and product recommendations are editorially independent. We may make money when you click on links to our partners. Learn More



     ReadmeName README

and you have a file in that directory called README.html,
that file will be displayed as the readme file for that directory.

Another neat trick here is that you can use HeaderName in
conjunction with IndexOptions +SuppressHTMLPreamble, putting
HTML in the header file to specify background, fonts, style
sheets, or whatever you use on the rest of your site, so that
the directory listing does not have to look like it does not
belong to the rest of your site.

Conclusion

In the cases where you have directory listings rather than
actual HTML pages, mod_autoindex can make these listings look
exactly as you want them to, without having to generate custom
directory listing pages for each directory.

Thanks for your feedback on my articles, and thanks for reading.
Please drop me a note at ApacheToday@rcbowen.com if you
have questions, or suggestions of topics you'd like for me to
cover in future columns.

thumbnail Rich Bowen

Rich Bowen is a ServerWatch contributor.

Recommended for you...

What Is a Container? Understanding Containerization
What Is a Print Server? | How It Works and What It Does
Nisar Ahmad
Dec 8, 2023
6 Best Linux Virtualization Software for 2024
What Is a Network Policy Server (NPS)? | Essential Guide
ServerWatch Logo

ServerWatch is a top resource on servers. Explore the latest news, reviews and guides for server administrators now.

Property of TechnologyAdvice. © 2025 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.