[nycphp-talk] Need virtual host Apache help ...
Christopher Hendry
chendry at nyc.rr.com
Thu May 22 09:50:13 EDT 2003
Does it need to be port based? I don't know how to set that up, but I use
Apache for plenty of different dev sites on my computers (windows):
Be sure to uncomment this line in httpd.conf:
NameVirtualHost *
Then minimum add this per site:
<VirtualHost *>
DocumentRoot "c:\\foobar"
ServerName foobar
</VirtualHost>
Also edit your windows/system32/drivers/etc/hosts file to reflect the new
sites, ie:
127.0.0.1 foobar
The above works for me. :)
-> -----Original Message-----
-> From: Jon Baer [mailto:jonbaer at jonbaer.net]
-> Sent: Thursday, May 22, 2003 9:19 AM
-> To: NYPHP Talk
-> Subject: [nycphp-talk] Need virtual host Apache help ...
->
->
-> Im trying to setup my laptop to host 5 different PHP-based sites for dev
-> purposes and getting lost on how to setup Virtual hosting so
-> that it's port
-> based w/Apache (I can't remember if it could do it or not or if it was
-> another webserver), ie. port 81 -> site 1, port 82 -> site 2, etc.
->
-> <VirtualHost *>
-> ?
-> </VirtualHost>
->
-> Any ideas? I just would like to not edit httpd.conf every time.
->
-> - Jon
->
->
->
-> --- Unsubscribe at http://nyphp.org/list/ ---
->
->
->
More information about the talk
mailing list