Koozali.org: home of the SME Server

port 80 not listening

Stuart Fleming

port 80 not listening
« on: October 22, 2003, 11:22:32 AM »
My problem is that for some reason apache is not listening on port 80, and my default http://www.potuk.co.uk does not work, but https://www.potuk.co.uk does. when i change the default port from 80 to 8080 and use http://www.potuk.co.uk it works.

My ISP does not block port 80 as i have set up a server on my other machine and it works fine.

Any suggestions welcome.

Charlie Brady

Re: port 80 not listening
« Reply #1 on: October 22, 2003, 11:28:12 PM »
Stuart Fleming wrote:
>
> My problem is that for some reason apache is not listening on
> port 80, and my default http://www.potuk.co.uk does not work,

Is apache really not listening on port 80? What does:

netstat -ap | grep :www

say? Have you checked all your log files for hints (e.g. /var/log/messages, /var/log/httpd/error_log)?

Charlie

Stuart Fleming

Re: port 80 not listening
« Reply #2 on: October 23, 2003, 03:23:42 AM »
Hey,

Thanks for you reply, it got me thinking and i figured it out. I'll post how i fixed this problem incase others are having the same problem.

I ran lynx http://www.potuk.co.uk from the console and found that it loaded up the page. This got me thinking that it was either a dns pointing to the loopback ip (127.0.0.1) or apache was listening on this.

So i edited /etc/httpd/conf/httpd.conf, and changed the line that read

Listen 0.0.0.0:80 to Listen 192.168.0.32 (the ip of my server in the network). I then ran  ./etc/init.d/httpd restart, and after this i could browse to http://www.potuk.co.uk.

If anyone needs help on this then feel free to email.
Regards