Apache2 running but unable to browse to it.
Hi Guys,
I'm stuck and having a little issue, I setup my Debian box a little while ago and Apache2 was running fine, but then not to long ago, (not sure if related)... I installed CVSWEB and now every time I try to browse to my website on my Linux box the browser just hangs. I don't get a "Server not found" or anything. It seems like my browser sees, connects but never get the page to come up, I'm sure it sees something because when I kill Apache2 I get the "Server cannot be found" message. Any thoughts on this?... it's really bugging me, I've went to the point of removing and re-installing Apache2 and still no luck. Thanks ahead. |
The Apache logs are actually really helpful - you will find /var/log/apache/access.log probably has a bunch of entries that will tell you exactly what the client browser is requesting, and why the Apache server doesn't appear to be providing anything.
|
Thanks,
I checked the access.log and nothing, it doesn't have anything in it... the only time there's something added to it is when I restart the Apache2 service...? Could this be something related to forwarding?... hmmm... Thanks. :) |
can you browse the webserver locally ?
lynx http://localhost.localdomain is Apache2 listening on port 80 ? netstat -lnp | grep ::80 Code:
tcp6 0 0 :::80 :::* LISTEN 1727/apache2 |
sure is, it's listen on port 80 and on port 443 for ssl connections... actually doing your command did not show me apache2 on port 80.... the ports.conf has 80 and 443... hmmm...
hmmm thanks :) |
If the above command did not list apache, then apache is not listening, which means its probably not running. Try doing this as root:
/etc/init.d/apache2 start |
My bad, it is listen on port 80 and 443...
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 3349/apache2 tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN 3349/apache2 But here's a weird thing, is the local address suppose to be listed as 0.0.0.0... I'm not sure where this gets set, I double checked my config on apahe2 and everything seems fine. help!... :P... Thanks :) |
that just means it is listening on all IP addresses on your box..
|
still not working
Hey, sorry late reply, but in that case, if it's lsitening, and at one point was working... then what would cause this to happen... my browser sees the server bcs it hangs for response, my server is listening, but logs don't show me accessing the site, and as for now it's internal and does not have a firewall.
cheers!... thanks, and sorry for late reply, vacation :P |
Turn iptables off
/sbin/chkconfig iptables off /sbin/service iptables stop |
Have you got this problem resolved? I met same issue here。
Tried again. It seems that IE works OK,w3m and Firefox have this issue. Thanks |
nope, have not resolved this yet.... :( urgh
|
|
well same issue here
localhost didn't work but 127.0.0.1 worked |
All times are GMT -5. The time now is 10:59 PM. |