We've expanded our news coverage and improved our search! Visit
oreilly.com for the latest or search for all things across O'Reilly!
Article:
 |
|
Location, Location, Location: Tips for Storing Web Site Files
|
| Subject: |
|
Re: Use NetInfo Manager instead of /etc/hosts and other comments |
| Date: |
|
2003-05-23 12:39:31 |
| From: |
|
anonymous2
|
Response to: Re: Use NetInfo Manager instead of /etc/hosts and other comments
|
|
I'm also using "NameVirtualHost *" without problems; I'm hosting a couple of real web sites on my Cube, connecting via an Airport base to internet.
One additional thing: Since Apple updates often overwrites http.conf, add
Include /private/etc/httpd/virtual.conf
at the bottom of httd.conf and add all virtual host settings in this file like this:
NameVirtualHost *
<VirtualHost *>
ServerName "www.wigzell.net"
DocumentRoot "/Library/WebServer/Documents"
</VirtualHost>
<VirtualHost *>
ServerName "www.wigzell.se"
DocumentRoot "/Library/WebServer/wigzell.se"
</VirtualHost>
Using this, you only have to re-add the first line after a system update
|