Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'An additional helpful hint for Apache' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
An additional helpful hint for Apache
Authored by: ScooterComputer on Jul 29, '02 12:12:23PM

Since Apple seems HELLBENT on overwriting Apache config files with every update (at least they were, after this hint you won't care, like I don't, if they are still being idiots), I don't recommend making changes to the /etc/httpd.conf file.

Instead, Apple, quite conveniently, uses an include statement at the very bottom of the httpd.conf file to load the users' Sites folder configs from the /etc/httpd/users folder. Use this to your advantage!

I place a .overrides.conf file in the /etc/httpd/users folder to override any Apache statements made in Apple's default file. The way Apache loads configs, any statements put here WILL override the httpd.conf file. Likewise, I created a .vhosts.conf file to setup my server name and alias statements, as well as configuring for multiple IP addresses.

Of course, you wouldn't have to put a "." in front of the name...I do that to make sure they load first and are invisible in the Finder (not like they really need to be though).



[ Reply to This | # ]