Home » Questions » Computers [ Ask a new question ]

Apache Server on Windows 7 opening up ports?

Apache Server on Windows 7 opening up ports?

I have installed Apache 2.2.14 on Windows 7 and can view my web pages using both http://localhost and http://127.0.0.1 but when I try to access the server from another computer on the same router, it fails. It also fails when I use the DynDNS address that I have mapped.

Asked by: Guest | Views: 206
Total answers/comments: 4
Guest [Entry]

"To add a rule in the Windows Firewall for port 80, do the following:

Go to the Control Panel and launch ""Windows Firewall""
Go to ""Advanced Settings""
Select ""Inbound Rules"" in the left pane
Select ""New Rule"" in the right pane
In the New Inbound Rule Wizard, select ""Port"" as Rule Type, then click on ""Next""
Select ""TCP and put ""80"" (and any other ports you want to open) in ""Specific local ports"", then click on ""Next""
Select ""Allow the connection"", then click on ""Next""
Select the network location where the rule should apply (select them all if you're not sure), then click on ""Next""
Give a name and an optional description

That should do it."
Guest [Entry]

"sounds like you need to add an exception(port 80) to the windows firewall.

I'm sure this can be accomplished by opening the firewall control panel and clicking around a bit. In XP it was fairly straightforward at least.

The problem could also be that apache is only configured to listen on the loopback interface. You can test that by running netstat or by trying to visit the other address of your machine, like http://192.168.1.101/"
Guest [Entry]

"In addition to checking the firewall and checking if apache is listening only to the localhost address, you could/should also check your .htaccess files. The new version you installed may have implemented a more restrictive security policy.

Some tutorials on .htaccess

Apache 1.3 - http://httpd.apachedotorg/docs/1.3/howto/htaccess.html
Apache 2.2 - http://httpd.apachedotorg/docs/2.2/howto/htaccess.html
A perhaps more friendly tutorial - http://wiki.uniformserver.com/index.php/HT"
Guest [Entry]

Looks like it is an issue with the Windows 7 firewall. When I turn off the firewall, it works properly. Now I just need to figure out how to have the firewall active but allow port 80 connections.