Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I've done everything this tutorial told me to set up an Apache 2.2 HTTP server, and then forwarded port 80 to the machine the server is on.

However I'm not getting a response back when I try to connect to the server through my fully updated Netgear router. Everything works when I just type in the local IP address of the server machine, and yet I don't get a response when I try to connect to the external IP address (which should redirect to the working local IP address).

I'm not sure if this is a problem with my ISP, Apache Server settings, or Firewall.

How do I find and fix this problem?


LOGS:

After successfully connecting from inside the firewall I get this log in the "error.txt" file:

[Sat Feb 25 03:09:23 2012] [error] [client 192.168.1.7] client denied by server configuration: C:/Users/Griffin/.htaccess
[Sat Feb 25 03:09:23 2012] [error] [client 192.168.1.7] (OS 5)Access is denied.  : Cannot map GET / HTTP/1.1 to file
[Sat Feb 25 03:09:23 2012] [error] [client 192.168.1.7] (OS 5)Access is denied.  : Cannot map GET / HTTP/1.1 to file
[Sat Feb 25 03:09:23 2012] [error] [client 192.168.1.7] (OS 5)Access is denied.  : Cannot map GET / HTTP/1.1 to file
[Sat Feb 25 03:09:23 2012] [error] [client 192.168.1.7] (OS 5)Access is denied.  : Cannot map GET / HTTP/1.1 to file
[Sat Feb 25 03:09:23 2012] [error] [client 192.168.1.7] (OS 5)Access is denied.  : Cannot map GET / HTTP/1.1 to file
[Sat Feb 25 03:09:23 2012] [error] [client 192.168.1.7] (OS 5)Access is denied.  : Cannot map GET / HTTP/1.1 to file
[Sat Feb 25 03:09:23 2012] [error] [client 192.168.1.7] (OS 5)Access is denied.  : Cannot map GET / HTTP/1.1 to file
[Sat Feb 25 03:09:23 2012] [error] [client 192.168.1.7] (OS 5)Access is denied.  : Cannot map GET / HTTP/1.1 to file
[Sat Feb 25 03:09:23 2012] [error] [client 192.168.1.7] (OS 5)Access is denied.  : Cannot map GET / HTTP/1.1 to file
[Sat Feb 25 03:09:23 2012] [error] [client 192.168.1.7] (OS 5)Access is denied.  : Cannot map GET / HTTP/1.1 to file
[Sat Feb 25 03:09:23 2012] [error] [client 192.168.1.7] File does not exist: C:/Users/Griffin/favicon.ico

And this in the "access.txt" file:

192.168.1.7 - Griffin [25/Feb/2012:03:09:23 -0800] "GET / HTTP/1.1" 200 1707
192.168.1.7 - Griffin [25/Feb/2012:03:09:23 -0800] "GET /favicon.ico HTTP/1.1" 404 209

No new logs show up after attempting to connect to the server from a VPN

share|improve this question

1 Answer 1

up vote 0 down vote accepted

First, make sure you are testing your web server from outside your home network (you cannot go in the front of a firewall from behind it).

Also, try disabling any local firewalls on your web-server and test again.

share|improve this answer
    
I connected to a VPN (HotSpotShield) to get outside the Firewall, and then tried again. Still same result -_-. There's no local firewalls running either. –  Griffin Feb 25 '12 at 9:32
    
Can you review your web servers log files? I am not familiar with Apache on Windows, but in *nix land they are located in /var/log/apache2/ –  InChargeOfIT Feb 25 '12 at 9:37
    
Also, if your web server is hosting more than one site (virtual hosts), you will need to add your ip address to the vhost you are using if you are not using a domain name. Example: ServerAlias mysite.com www.mysite.com localhost 109.234.234.12 –  InChargeOfIT Feb 25 '12 at 9:46
    
I added the logs above, none show up when I try to connect through a VPN. Also, I'm using Windows and don't know what a virtual host is or why I would need it. –  Griffin Feb 25 '12 at 11:21

Your Answer

 
discard

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.