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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Virtual host using 127.0.0.1 on windows for developement process

Status
Not open for further replies.

Perllees

Technical User
Apr 17, 2001
7
SG
Hi there, I need to know how to configure virtual host on my windows 98 system to reflect path and url on my origanal site.

I've tried altering the hosts file in windows directory but the hosts file will only accept a single word with no (.) dot on it.

The path to all the file nicely configured only need help in this area where url is concerned.

Thank you.

Perllees
 
To configure virtualhosts, you need to modify the hosts.conf file. I know in linux it's located in /usr/local/apache/conf, maybe in c:\program files\apache\conf? Look for the last section of the httpd.conf file that says virtualhost section.
construct a virtualhost like so:
<VirtualHost 192.168.1.102>
ServerName ServerAdmin bob@hotmail.com
DocumentRoot c:\html\mysite
</VitualHost>

Hope this is informative!


Rninja
 
Hi Rninja,

I think I am having a similar problem to Perllees:

I am using my IP 127.0.0.1 for testing purposes on Apache. I haven't got a server name.

Now I want to install virtual hosts. I tried every configuration I could think of in the httpd.conf, but I can't get it to work. What I need is something like:

<VirtualHost 111.22.333.0>
DocumentRoot \mmarts\beta ServerName 127.0.0.1
</VirtualHost>

Any idea?

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top