Seeing XAMPP from the outside world

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

Seeing XAMPP from the outside world

Postby runey71 » 22. November 2009 15:15

I've a total noob at this so sorry for any stupid questions...

I've installed the full version of XAMPP and it seems to be running correctly... I created the test.php file and put it in the htdocs folder... Tried seeing it from localhost and 127.0.0.1 and all is good...

However what I really need is to see it from the outside world... I have a static IP and that is what I have tried to use to see the php file... e.g. http://203.xxx.xxx.xxx/test.php
That just brings up a 404 Not Found error though...

I have windows firewall and my routers firewall turned off right now in case that was the problem...

Any pointers in the right direction would be greatly appreciated... Please let me know if I need to provide any other information...

Thanks...
runey71
 
Posts: 3
Joined: 22. November 2009 14:58

Re: Seeing XAMPP from the outside world

Postby Brabax » 22. November 2009 15:28

So from WAN you get this 404.
What about LAN?
Maybe there is some forwarding to another IP in the router.

Regards,

Brabax
We've already reached tomorrow's yesterday but we're still far away from yesterday's tomorrow.
User avatar
Brabax
 
Posts: 30
Joined: 04. April 2003 18:37
Location: Espelkam*

Re: Seeing XAMPP from the outside world

Postby runey71 » 22. November 2009 21:39

Thanks for the response :)

Yes I thought forwarding might be the answer too... After my initial post I realised I had not forwarded incoming port 80 requests to anything...

So I'm now looking for incoming port 80 from anything and forwarding it to the IP address of the web server...

I still can't access the page externally though...

So http://localhost/test.php and http://127.0.0.1/test.php works from the web server itself... http://192.168.1.5/test.php works from any other computer on the network...
http://203.xxx.xxx.xxx/test.php just does not seem to work :(

EDIT: OK I'm going to show my total noobness here now... When I was trying to access test.php via http://203.xxx.xxx.xxx/test.php I was doing so from a computer on the same network as the web server... I'd always get the 404 not found error though... However I just got to work and tried it from there and it works fine... Just wondering if this is normal and if tee is anyway this behaviour can be altered? I'm thinking this might cause me some problems in the future during testing...
runey71
 
Posts: 3
Joined: 22. November 2009 14:58

Re: Seeing XAMPP from the outside world

Postby Izzy » 22. November 2009 23:36

Introduced into XAMPP 1.7.2 is a new security concept that allows you access to the server's sensitive file and folder locations from the LAN and localhost but not from the WAN IP address.

The WAN has access from outside your LAN via the Internet to the server's DocumentRoot only unless the DocumentRoot is configured otherwise in the \xampp\apache\conf\extra\httpd-vhosts.conf file in a VirtualHosts directive.



This New XAMPP security concept can be found down at the end of the \xampp\apache\conf\extra\httpd-xampp.conf file.
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Re: Seeing XAMPP from the outside world

Postby runey71 » 23. November 2009 01:07

Thanks Izzy... I'll check that out when I get home from work... Hopefully that'll sort out the last of my issues :)
runey71
 
Posts: 3
Joined: 22. November 2009 14:58


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 67 guests