LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Cannot access websites on apache from outside the server (https://www.linuxquestions.org/questions/linux-server-73/cannot-access-websites-on-apache-from-outside-the-server-4175513913/)

yandos 08-07-2014 06:47 PM

Cannot access websites on apache from outside the server
 
Hi,
I have a debian 7.5 based Ubuntu server.
It's a rather vanilla installed XAMP used as a basic web server.
It used to work fine and I have no idea why it stopped working suddenly (there was some maintenance today but it worked when I left it - I changed partition sizes with Gparted).

When I try to access a website from the server (tried with w3m) all is working OK, including PHP and mySql access.

When I try to access the same host (using a domain) from the outside, the browser keeps loading for a long while, eventually (after few minutes) saying the page could not be loaded.

I made sure that ports are open and accessible with outside scanner.

So I'm sure the Apache is available (working from inside the network, websites loading from SSH using w3M and pinging)
I'm sure the server is connected to the web (I can use putty to SSH)
the host is resolving to the correct IP (but won't ping from outside, only inside)
The ports seems to be opened (scanned and got OK for port 80)

I'm not a very experienced user so I ran out of ideas, would really appreciate any idea or direction.
Thanks!

bloodstreetboy 08-08-2014 06:39 AM

Are you sure the 'Allow attribute' has been set for outside LAN? In this case, you will get forbidden error.
Are you getting connection Time out error?

linuxfreakz 08-11-2014 10:03 AM

Cannot access websites on apache from outside the server
 
please check your servers selinux setting and also copy your servers http error file.


All times are GMT -5. The time now is 08:56 PM.