Virtualhosts on Apache

by Reywob(at)aol.com

 Date:  Sun, 4 Feb 2001 04:17:47 EST
 To:  hwg-servers(at)hwg.org
  todo: View Thread, Original
Hi list,

I'm trying to set up apache on my Win 98 machine to use as a test platform.  
I have got apache and PHP installed fine, but I now need to create some 
virtualhost declarations.  How can I do this to get everything running 
through localhost?  I cannot seem to get them picked up as being on 
127.0.0.1, and all the tutorials are for setting it up on "proper" linux 
computers :-)

I have added the following at the bottom of the file, and not altered 
anything else in the httpd.conf:

NameVirtualHost 127.0.0.1

<VirtualHost 127.0.0.1>
ServerName default.localhost
DocumentRoot c:/apache/htdocs
ServerAlias default
</VirtualHost>

<VirtualHost 127.0.0.1>
ServerName bc.localhost
DocumentRoot c:/apache/bc_release/htdocs
ServerAlias bc
</VirtualHost>

TIA
Peter.

HWG: hwg-servers mailing list archives, maintained by Webmasters @ IWA