Test server on a local network with XAMPP

Posted by hopscotch1978 on Server Fault See other posts from Server Fault or by hopscotch1978
Published on 2010-04-10T14:06:19Z Indexed on 2010/04/10 14:13 UTC
Read the original article Hit count: 358

Filed under:
|
|
|
|

Hi,

I'm not very proficient with networks and could use some help.

I've got a Win 7 desktop with XAMPP which acts as my local dev machine. I've configured a virtual host on the desktop which I'm able to access fine. If I'm understanding things correctly, the virtual host uses port 80 (<VirtualHost 127.0.0.1:80>).

I've just tried to configure a separate Win XP laptop on the local wireless network to connect to the main desktop for testing purposes. I've added the IP address and virtual host name to my Hosts file on the laptop.

My virtual host is imaginatively named "virtualhost1". When I type this into my laptop browser, it connects correctly to the main desktop and I get the XAMPP welcome screen. But I can't seem to get to the actual site, just the XAMPP welcome screen. It kind of jumps the browser to http://virtualhost1/xampp/.

I think it's a port issue of some sort but I have no idea how to resolve it. I would get the same XAMPP welcome screen on my desktop if I omitted ":80" from the virtual host declaration.

On my main desktop, typing "virtualhost1" to the browser address bar gives me the site correctly, not the XAMPP welcome screen.

Help would be appreciated.

Thank you.

© Server Fault or respective owner

Related posts about xampp

Related posts about virtualhosts