Forum Moderators: phranque

Message Too Old, No Replies

Apache works local network but not online

         

xorgroup

4:20 am on Jan 10, 2007 (gmt 0)

10+ Year Member



Hey, I was just wondering if anyone knows what's wrong with my setup. Apache is working over the local network but not on the internet~it's rediculous

eelixduppy

4:31 am on Jan 10, 2007 (gmt 0)



Check for firewalls interrupting. Also, if you are behind a router you must forward the port.


There are many possible reasons for this, and almost all of them are related to the configuration of your network, not the configuration of the Apache HTTP Server. One of the most common problems is that a firewall blocks access to the default HTTP port 80. In particular, many consumer ISPs block access to this port. You can see if this is the case by changing any Port and Listen directives in httpd.conf to use port 8000 and then request your site using [yourhost.example.com:8000...] (Of course, a very restrictive firewall may block this port as well.)

[httpd.apache.org...]

xorgroup

5:22 am on Jan 10, 2007 (gmt 0)

10+ Year Member



Thanks for the port idea: I set port forwarding up and opened up port 80 and also 443. I have the firewall on from my router settings but I figure that shouldn't matter as the port is open. Any other possibilities that you know of?

jdMorgan

3:24 pm on Jan 10, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



> I have the firewall on from my router settings but I figure that shouldn't matter as the port is open.

Not necessarily.

The firewall, if it is a decent one, will block all incoming connections while allowing outgoing connections. This blocking may or may not be controlled at the same configuration level as port forwarding -- It depends on the firewall/router implementation details.

Either tell it explicitly that it's OK to accept incoming port-forwarded connections, or disable the firewall temporarily, so that you can test to see if the problem is in the firewall as opposed to the router, ISP, or server. Eliminate variables when possible, otherwise we might be guessing for days.

Also, how is your DNS set up? I assume you either have a domain name pointed to your "public" ISP-assigned IP number, or that you are attempting to access the server using that IP address. But it might help to state this.

Lastly, be aware that you will have to test your server from outside your own router; It is impossible to make a connection from inside your router that is both outgoing and incoming at the same time.

Jim

xorgroup

4:36 pm on Jan 10, 2007 (gmt 0)

10+ Year Member



I disabled the firewall and it doesn’t seem to be the problem but within the router’s configuration utility there are some things that look to me like they should be filled in.
The Network Address Server Settings (DHCP) has the server enabled but has no static DNS entries. Also, under Static Routing the settings look like follows:
Static Routing Select set number:


Enter Route Name:

Destination LAN IP: . . .

Subnet Mask: . . .

Default Gateway: . . .

Interface:

Where the interface can be changed from WAN to LAN
I know little about this stuff but I’m thinking it’d make sense to fill in my comp’s info from here even though it’s already configured with a static ip?
Thanks a lot for all the help so far, I feel as though the solution will emerge soon