VirtualHost problem

Problems with the Windows version of XAMPP, questions, comments, and anything related.

VirtualHost problem

Postby scranmer » 24. August 2005 09:33

After spending loads of time trying the different suggestions found in this forum (I even translated the greman ones), I still cannot get my setup working right, dont suppose anyone can help???

I have 2 pcs connected via a DSL router, PC1 with xampp and 2 folders in htdocs and PC2 running a browser to access the sites. I want to access them via http://bob or http://harry.


PC1 with xampp installed, httpd.conf has
NameVirtualHost 192.168.0.3

<VirtualHost 192.168.0.3>
ServerName bob
DocumentRoot C:/xampp/htdocs/bob/
</VirtualHost>

<VirtualHost 192.168.0.3>
ServerName harry
DocumentRoot C:/xampp/htdocs/harry/catalog/
</VirtualHost>


while lmhosts.sam has
192.168.0.3 bob
192.168.0.3 harry



I have tired to use *:80, with and without NameVirtualHost, I have added the lmhosts changes to PC2 and am now out of ideas.

Cheers

Simon.
scranmer
 
Posts: 26
Joined: 20. May 2004 14:59
Location: UK, Southport

Postby Bugman » 24. August 2005 09:56

Hello

1st off, try to get it to work on the PC With the xmapp on it.

The one with Xmapp on it, edit the hosts file and put the data with the ip address (use the localhost ip address first)

Other then that, i can't help you much, sorry.

Bugman
Bugman
 
Posts: 53
Joined: 13. July 2004 23:39

Postby scranmer » 25. August 2005 10:00

Bugman,

Thanks for the reply, I can get it to work on PC1 by using the standard call ip/folder but not the direct folder call :evil:

Anyone else any ideas?

Simon.
scranmer
 
Posts: 26
Joined: 20. May 2004 14:59
Location: UK, Southport

Postby Wiedmann » 25. August 2005 10:32

while lmhosts.sam has

You must use the file "HOSTS" in the same directory.
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby taustin » 25. August 2005 23:13

Wiedmann wrote:
while lmhosts.sam has

You must use the file "HOSTS" in the same directory.


And furthermore. the "sam" at the end means it is a sample file to show the format for entries. "Hosts.sam" will not work. The file name must be "hosts" with no extension.
taustin
 
Posts: 150
Joined: 24. September 2004 00:23
Location: Huntington Beach CA

Postby scranmer » 02. September 2005 21:14

Thanks taustin / Wiedmann,

What a numpty :oops: ! I knew it would be something simple like that. Now just need to fixt the lost includes.

Notes for anyone else doing this... apart from editing the correct HOSTS file alos add these entries into the HOSTS file on each of the networked machines.

HTH

Si.
scranmer
 
Posts: 26
Joined: 20. May 2004 14:59
Location: UK, Southport


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 89 guests