[TriLUG] Hosts file entry for Name-based Virtual Host
matt-nc
ncmail at triad.rr.com
Fri Sep 9 10:48:09 EDT 2005
I'm trying to set up a name-based virtual host for my own local development
and testing purposes.
As instructed by the Apache2 documentation, I have put the following in the
config file (actually the Vhosts.conf which is linked to httpd2.conf by an
include):
#Listen for virtual host requests on all IP addresses
NameVirtualHost *:80
<VirtualHost *:80>
DocumentRoot /home/amos/www/php
ServerName www.php.com
</VirtualHost>
Now, I need to put an entry in the hosts file.
Based on the above information, what should I add to the hosts file?
As I recall, I think it only has one line at the moment:
127.0.0.1
If anyone can verify that what I've done so far is correct and what to do
next, it would be greatly appreciated.
Thanks,
Matt
More information about the TriLUG
mailing list