Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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

Question: why I cannot access my webserver from external (public IP) meanwhile I can access it through my LAN. Error is cannot display page. Below is my server spec:

  • OS FreeBSD v8.1
  • Apache v2.2.17
  • MySQL v5.1.54
  • PHP v5.3.5

I have been looking answer for a week but still no solution. My webserver was working fine. I have done NAT IP properly in my firewall and looks good where others application server can serves as usual to external user.

I try to telnet the web server's public IP to port 80 and everything looks fine to me. But question is why I still cannot access it from external using browser. Did I need to look into my php file or httpd.conf file or something that I,ve missing during installation? can pls someone help me on this, really appreciate.


share|improve this question
"from external (public IP)" means you try to access you web server from an external network? – lg. Feb 10 '11 at 8:34
yes. external means from external network or internet. – Azrim Feb 10 '11 at 8:45
Can you find somthings in apache logs? If you stop apache, what happens? – lg. Feb 10 '11 at 8:51
In Apache logs (httpd-error.log) it shows request failed: error reading the headers. Meanwhile in (httpd-access.log) it show few lines "GET / HTTP/1.0" 200 85 "-" "Wget/1.11.4". I try to wget from outside and result no data received. – Azrim Feb 10 '11 at 8:57

If you are trying to access your site from your internal lan via the external IP then it is probably a network issue. If you are accessing it from outside your lan then it is likely the virtual host settings.

share|improve this answer
I,m hosting only one domain for this web server. not multiple hostname or domains. do I need to config the vhosts settings? As for others web server I had also did not set the vhosts and its still works fine. – Azrim Feb 11 '11 at 0:51

Your Answer


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.