Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

When I use localhost the index page is displayed. When I use the IP outside of my network or within my network I get a not found 404 error. Please suggest possible issues or fixes.

share|improve this question

2 Answers 2

Are you using NAT? If so, most routers require you to use the LAN IP inside your network and don't route the traffic correctly if you use the WAN IP + port forwarding, since the traffic comes from inside the NAT. From the outside you have to use the WAN IP and confirm that your ports are forwarded correctly.

share|improve this answer

Do you use a multi-site server or a singel-site server? If, for example, you're using ISPConfig or a similar tool + maybe Apache you will most likely have the default Apache http root reply on your IP/localhost and then have your site root reply on the other.

I would actually expect your to get a reply for your IP and not localhost on a multi-site server to be more likely, but it could be the other way around. Just my thought about this...

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.