Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have recently installed the latest Apache.

It is working fine through localhost:80 and through, but I can't connect through [External IP]:80.

I have forwarded ports correctly, but I don't know if it has something to do with the httpd.conf file.

So here is a link to my httpd.conf file.

share|improve this question

migrated from Nov 12 '12 at 8:28

This question came from our site for professional and enthusiast programmers.

Are you behind a firewall or a NAT device? – onon15 Nov 11 '12 at 9:58
No. I just believe there is something to do with the http.conf file – Bailey Butler Nov 11 '12 at 11:04
  1. Ensure that your apache is listening on every address:

    • get this in your conf:

    • check it from console:

      $ netstat -luntp | grep :80
    • I would change ServerName to the IP (I'm not an expert, but I think it gives better results with external IPs):

      ServerName localhost:80
  2. Then, visit the internal ip of the server and ensure it's showing ok.

  3. Now, ensure that you are redirecting the ports correctly, and check it visiting your external IP address outside your network (with a phone, o similar, so your router/firewall doesn't get in the way out) and

    • if the browser says connection interrupted, it's probably a firewall issue
    • if the browser is waiting too long, could be a firewall issue, or something in your apache configuration.
share|improve this answer

Your Answer


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