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

I'm using Mac OS X server 10.6.6. I want to have a custom configuration for mod_autoindex. There is a mod_autoindex section in the httpd.conf, however, if I edit the httpd.conf file manually (/private/etc/apache2/httpd.conf), some of the changes I make there get overwritten when the server restarts, sometimes.

OS X server doesn't really intend for you to manually edit httpd.conf, I take it. It wants to maintain httpd.conf on it's own. Is it possible to make custom configurations for a module, specifically the mod_autoindex module? I've looked around in the documentation but see no support for how to do something like this on mac OS X server:

<IfModule mod_autoindex.c> 
Options Indexes FollowSymLinks
IndexOptions FancyIndexing 
IndexOptions VersionSort 
IndexOptions HTMLTable 
IndexOptions FoldersFirst 
IndexOptions IconsAreLinks 
IndexOptions IgnoreCase 
IndexOptions SuppressDescription 
IndexOptions SuppressHTMLPreamble 
IndexOptions XHTML 
IndexOptions IconWidth=16 
IndexOptions IconHeight=16 
IndexOptions NameWidth=*
IndexOrderDefault Descending Name
HeaderName /index-style/header.html
ReadmeName /index-style/footer.html
Blah blah blah
share|improve this question
up vote 0 down vote accepted

it's perfectly fine to control apache on OSX Server using direct edits of httpd.conf and its counterparts. The problem comes in case you're partially using Server Admin (or another control panel) and direct editing of conf files.

Regarding your autoindex feature: This is from httpd.conf

#### For Mac OS X Server: Note that indexing is further controlled                                                            
#### by the Server Admin application, which adds "Options +/-Indexes                                                          
#### in the virtual host scope.                                                                                               

So you need to check your virtual host conf file and also to check included files on the bottom.

share|improve this answer
Actually it's not OK to edit httpd.conf itself in most places. For instance, with mod_autoindex, most of the options above will disappear from the file whenever the server is restarted. Many other manual edits to httpd.conf are going to be completely wiped every time you restart the server. However, you're pointing to the right answer which is that you can make custom configurations to the conf files through the virtual hosts conf and through .htaccess – perrierism Mar 25 '11 at 22:17

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.