PDA

View Full Version : Apache...?



Mindflare
09-06-2005, 09:09 AM
<BircGuest-59102936> How can an Apache webserver work internally, have port 80 open, and still not work externally?

It's running Fedora Core 4, and this same installation worked from another internet connection, using pretty much default settings. I moved internet connections and it all works internally, but won't show up externally using my IP. Port 80 is properly forwarded.

Edit: There are no firewalls enabled other than the one in the router itself, and as I mentioned before, the port is forwarded to where it should work.

Thanks for any help in advance.

bipper
09-06-2005, 07:30 PM
Define externally? From another computer over the web, or another computer on your network.

If its over the web its because the router holds your IP address and -routes it - to other computers, dividing the single Ip adress, to the network.

If you are connecting, try putting in the routers ip address. You can get this easily by going to http://www.whatismyip.com

Let me know if this works :D

Bipper

Endless
09-06-2005, 07:55 PM
Make sure that XP's firewall didn't sneak up on you. Also, did you try using a port different than 80?
Edit: check that your ISP doesn't block inbound traffic on port 80.

crono_logical
09-06-2005, 07:58 PM
Or any other firewall, since you're on Fedora :p As Raf said, try another port (preferably a high numbered one), since some ISPs like to silently block common server port numbers :p

Endless
09-06-2005, 09:47 PM
*slaps forehead*

On Mandrake, I'd know where to look, on FC(4), I'm not. http://stanton-finley.net/fedora_core_4_installation_notes.html#Web maybe?

Also double check iptables' settings.

Samuraid
09-07-2005, 02:19 AM
First check:

http://www.canyouseeme.org/

Type in port 80 from your server and make sure the outside world actually can see you through port 80.

Next, make sure apache is running. At the command prompt, typing <b>ps x | grep httpd</b> should return a line with "httpd" and a PID if apache is running. If it doesn't return anything, then apache is not running.

If both of those tests pass, but you still can't request pages from the outside, check your httpd.conf file and make sure apache is listening to the correct port/IP and the that your webroot has the correct file permissions.

Mindflare
09-07-2005, 03:58 AM
I know my IP is right. There are no local firewalls on (XP or Fedora). I've got pretty good reason to believe that my ISP, Comcast, doesn't block port 80, since I've hosted on them before (no more than a month ago, too). No matter what port I use, it doesn't work. Apache is set to listen on port 80. Apache works properly, as I can see it internally, from all computers on this network. Just not from outside, over the web.

I'm about to give up, I'm stumped, and I guess the situation is a bit complicated.

Samuraid
09-07-2005, 05:54 AM
It's your firewall/router. It's likely set to block WAN requests to your server on port 80. If everything else works, that's basically all that can be wrong.

Endless
09-07-2005, 05:33 PM
I know my IP is right. There are no local firewalls on (XP or Fedora). I've got pretty good reason to believe that my ISP, Comcast, doesn't block port 80, since I've hosted on them before (no more than a month ago, too). No matter what port I use, it doesn't work. Apache is set to listen on port 80. Apache works properly, as I can see it internally, from all computers on this network. Just not from outside, over the web.

I'm about to give up, I'm stumped, and I guess the situation is a bit complicated.

I'm pretty sure that iptables is installed by default on pretty much any linux distro. Check that it allows non local IPs to connect.
Aslo, when you hosted a month ago, was it with the router in place?

bipper
09-07-2005, 05:35 PM
When you connect from outside, make sure you are using your modems ip address. If you connect internally using 192.168.254.254 or somesuch, thats great; but its an address that will only work on your network. What you will need to do is dial into your modems ip, which will look at your router and get routed to the right computer.

check that whatismyip.com just to be quick and easy.

Bipper