O'Reilly Hacks
oreilly.comO'Reilly NetworkSafari BookshelfConferences Sign In/My Account | View Cart   
Book List Learning Lab PDFs O'Reilly Gear Newsletters Press Room Jobs  



Getting the heck out of httpd.conf
By keeping your site-specific configuration settings in a site.conf file, you'll avoid your settings evaporating with Apple's next Software Update.

Contributed by:
Rael Dornfest
[03/11/03 | Discuss (2) | Link to this hack]

The recent 10.2.4 update of Mac OS X unfortunately futzed with my Apache configuration file, confusing the heck out of me when suddenly my closet server stopped accepting iCal DAV-based publish requests.

Rather than re-inserting my site-specific settings into /etc/httpd/httpd.conf each time Apple decides to overwrite the Apache config file, I now maintain a site.conf file in /etc/httpd/conf/users, right alongside all the username.conf files.

These are loaded by the Apache Web server each time the it is (re)started. That's taken care of for you by the last line in httpd.conf:

Include /private/etc/httpd/users 
This way, software updates may come and go, but my local configuration is unaffected.


O'Reilly Home | Privacy Policy

© 2007 O'Reilly Media, Inc.
Website: | Customer Service: | Book issues:

All trademarks and registered trademarks appearing on oreilly.com are the property of their respective owners.