Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Leopard's Apache ignoring httpd.conf

Status
Not open for further replies.

Shrp

IS-IT--Management
Jan 9, 2002
82
US
After an install of Leopard, I want to run the Apache web server with a different DocumentRoot, so I put the file I used on my Tiger machine into place as /etc/httpd/httpd.conf - but it seems to be ignoring that file, after a restart. Where is it looking for the httpd.conf and/or configuration information? Thanks!
 
I don't have Leopard yet, but I know that some Apache installs use multiple http conf files in sub-directories. Tiger did this a bit with individual website config files in /etc/httpd/users/. I'd look around /etc/httpd to see if you can find the correct spot.

Actually, even in Tiger, I wouldn't have changed the document root in the main config file. I used a file called

/etc/http/users/virtualhosts.conf:

NameVirtualHost *:80

<VirtualHost *:80>
DocumentRoot "/Library/WebServer/Documents"
ServerName shadowjack.local
</VirtualHost>

<VirtualHost *:80>
DocumentRoot "/Users/michaelheinz/Sites/obvioustroll.no-ip.info"
ServerName obvioustroll.local
</VirtualHost>

<VirtualHost *:80>
DocumentRoot "/Users/michaelheinz/Sites/heinztrucking.local"
ServerName heinztrucking.local
</VirtualHost>


I used /etc/hosts to point "obvioustroll.local" and "heinztrucking.local" at 127.0.0.1.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top