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

virtual host on LAN 1

Status
Not open for further replies.

AndreasBoehmer

Programmer
Jul 17, 2001
6
AU
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?
 
Try:

NameVirtualHost *
<VirtualHost *>
DocumentRoot \mmarts\beta ServerName 127.0.0.1
</VirtualHost>
 
I have tried it. I presume you meant to replace the * with an IP number? Well, I have tried it with the * and the IP number, but in both cases I got following error message when testing the configuration:

Syntax error on line 808 of httpd.conf
DocumentRoot takes one argument, Root directory of the document tree

Sounds senseless to me, but mabe you can make something out of it?
 
# out the DocumentRoot from the main server config outside the virtual host directive.
 
Hey thanks, it worked! Great job, thebos.

Well, a new thing came up, it's not really Apache directed, but I thought maybe you kow a quick an easy solution for it:

I have got IIS running and Apache as well. IIS is running on 127.0.0.1:80 and Apache is on 127.0.0.1:8080.

Now I set the LAN settings in IE to go to 127.0.0.1:8080. The problem is now, that Internet Explorer asks me to connect to the internet when I try to access the LAN. It will only show me the files on the computer if I am connected to my service provider.

It used to work fine when I had the LAN set for Port 80, but now IE suddenly complains. Any idea what that could be?
 
Just say NO! Don't connect to the internet but don't work offline either. The second time you try to connect it should work. I hate this about IE because it is a pain to do demos in rooms without internet connections. Wushutwist
 
Set the internet connection to be on a LAN and never dial a connection. You'll then have to manual dial to get an outside connection but it should work. If that doesn't work remove those LAN settings and access both web servers by either or
 
I had to turn the LAN setting in IE off. Just wouldn't work with it. Meaning I have to manually dial into it. But at least it works without going online now.

Thanks for all your help!
 
check out the virtualhost FAQ in this forum.


Hope this helps!!!


Rninja
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top