How to access site running apache server over lan without internet connection

Zak picture Zak · May 13, 2009 · Viewed 187.2k times · Source

I am running a server on Windows XP SP2 computer using EasyPhp. Lets call it computer_1. The ip address of computer is 192.168.1.2

Now I have another computer ( computer_2) on the lan with ip address 192.168.1.3

I want to access the site on computer_1 from computer_2.

comupter_2 can ping computer_1 (ping 192.168.1.2 works)

But when I type http://192.168.1.2 in the browser of computer_2, nothing happens.

I want to access the site on comupter_1 from computer_2.

Answer

duckyflip picture duckyflip · May 13, 2009

In your httpd.conf make sure you have:

Listen *:80

And if you are using VirtualHosts then set them as given below:

NameVirtualHost *
<VirtualHost *>
   ...
</VirtualHost>