Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Like the title says, I want to take the ugly default HTML 3.2 directory page that come with Apache, and replace it with a modern, better looking page.

Anyone know how? Is it even possible? Is the page generated somewhere deep inside the source code? Tell me stuff like that, please.

P.S. I use the built in Apache server on Mac OS X 10.6.6.

share|improve this question
up vote 3 down vote accepted

Assuming you mean the file listing you see of a webserver directory when there is no index.html present and +Indexes is on -- All you need to do is add a html file with the style/fanciness you want and point apache at it with the

HeaderName /header.html

directive. It'll be included at the top of every auto-generated index.

The directory lists are indeed created in the guts of apache, by mod_autoindex, which is where I found this directive:

share|improve this answer
What module is HeaderName included in? – tylermwashburn Mar 10 '11 at 6:00
Thanks. I was able to do pretty much what I wanted to do. Not exactly, but close. :) – tylermwashburn Mar 11 '11 at 1:03

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.