Page 1 of 1

VHOST - Unable to access site from internet

PostPosted: 12. June 2009 11:54
by parasoaf
Hello,
I've installed xampp-win32-1.7.1.exe on an win 2003 server and it's running successfully on my local machine as well as on LAN.

I'm able to bring up the site sucessfully with Virtual Hosting with the following methods

http://localhost/my-site/ ------ Locally from the windows 2003 server
http://www.my-site.org/ ------ Locally from the windows 2003 server
http://my-site.org/ ------ Locally from the windows 2003 server
http://192.168.0.76/my-site/ ------ Anywhere from LAN using the ip address (LAN) of the windows 2003 server

The problem is that I can't access my-site.org from internet.

The ping command also shows the right results ie. (where XXX.XXX.XX.XX is the internet ip address of my windows 2003 server)

C:\Documents and Settings\Administrator>ping my-site.org

Pinging my-site.org [XXX.XXX.XX.XX] with 32 bytes of data:

Reply from XXX.XXX.XX.XX: bytes=32 time<1ms TTL=128
Reply from XXX.XXX.XX.XX: bytes=32 time<1ms TTL=128
Reply from XXX.XXX.XX.XX: bytes=32 time<1ms TTL=128
Reply from XXX.XXX.XX.XX: bytes=32 time<1ms TTL=128

Ping statistics for XXX.XXX.XX.XX:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms

Any help or pointers would be much appreciated.

Regards,
Paras.

Re: VHOST - Unable to access site from internet

PostPosted: 12. June 2009 12:29
by Wiedmann
The problem is that I can't access my-site.org from internet.

Maybe a wrong router/firewall configuration.

Re: VHOST - Unable to access site from internet

PostPosted: 12. June 2009 13:08
by parasoaf
Tried without the Router on a Windows XP machine with totally new installation ..the results are same as mentioned in the original post.

Still can't access my-site.org from the internet.

Is there any setting that needs to be modified to specify the internet ip address in any of the configuration files ?

Re: VHOST - Unable to access site from internet

PostPosted: 12. June 2009 14:23
by Wiedmann
Is there any setting that needs to be modified to specify the internet ip address in any of the configuration files ?

Regarding XAMPP/Apache?
--> No.

Re: VHOST - Unable to access site from internet

PostPosted: 12. June 2009 14:40
by parasoaf
Since you already answered "NO" so i guess it doesn't matter XAMPP/Apache?

Any other pointers ???

Re: VHOST - Unable to access site from internet

PostPosted: 24. June 2009 07:20
by mahes
am also have this problem.. what is the solution.........

Re: VHOST - Unable to access site from internet

PostPosted: 24. June 2009 10:09
by Nobbie
mahes wrote:am also have this problem.. what is the solution.........


You have to configure your router correctly, in order to route the tcp requests on port 80 to your server ip. It depends on your router where and how to establish that.

Re: VHOST - Unable to access site from internet

PostPosted: 24. June 2009 10:15
by mahes
Its static IP, how can i.....

Re: VHOST - Unable to access site from internet

PostPosted: 24. June 2009 10:20
by Nobbie
What is static, what means "how can i"?

Re: VHOST - Unable to access site from internet

PostPosted: 24. June 2009 10:24
by mahes
Sorry for the short term reply... AM using static ip with out router..For this can u route me in correct direction because am confused after read lot of articles....

Re: VHOST - Unable to access site from internet

PostPosted: 24. June 2009 11:04
by Nobbie
I did already point you in the correct direction:

You have to configure your router correctly, in order to route the tcp requests on port 80 to your server ip.


What is unclear with that? Your server is connected to your router (i think) and it has a different ip than your router. Your router usually has two different IPs, the public WAN IP (like 170.164.100.64) and a local LAN IP (192.168.1.1 or similar). All PCs in the LAN (as well as the server) have local IPs in the same scope as the local LAN IP of the router, i.e. like 192.168.x.x

You have to configure your router to route the incoming tcp requests from port 80 to the local LAN IP of your server (where you installed Xampp). The (static) public IP or even static local IP of the router are not important for that.