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


Click here to return to the 'Global/local httpd.conf' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Global/local httpd.conf
Authored by: Anonymous on Jul 30, '02 08:33:27AM

Any reason not to put the <VirtualHost *> block in the user's own .conf file in /private/etc/httpd/users? Keeps your stuff separate from the 'main' stuff.

Also, don't forget to restart Apache from the Terminal when you're finished editing httpd.conf for your changes to take effect: sudo apachectl restart



[ Reply to This | # ]
Global/local httpd.conf
Authored by: bluehz on Jul 30, '02 08:54:39AM

I have all my virtual hosts in seperate files and it works great - I find it much easier to open the specific file for each domain rather than the main httpd.conf file. Use an include statement in the main httpd.conf to include as many seperate files as desired:

Include /path/to/vhost.conf



[ Reply to This | # ]