View previous topic :: View next topic |
Author |
Message |
ihtruelsen Apprentice
Joined: 14 Mar 2003 Posts: 168 Location: Mill Bay, BC
|
Posted: Wed Feb 16, 2005 6:22 pm Post subject: cannot connect to apache from outside my computer |
|
|
I know that I am missing something obvious, but I can't see what.
I have apache2 setup and running. I am able to connect to it from the local machine, but I get a connection refused error when I try to connect from a remote machine. I have it set to 8080 and the port is forwarded from my router. I have the allow setting set to my IP net (192.168.1) so I would think that the router would be allowed.
I can't think of what else to do, but that is likely a limit of my imagination. Can anyone help me out here? |
|
Back to top |
|
|
moocha Watchman
Joined: 21 Oct 2003 Posts: 5722
|
Posted: Wed Feb 16, 2005 6:25 pm Post subject: |
|
|
Connection refused, as in the port isn't accessible from beyond the portforwarding router? If yes, then your port forwarding setup doesn't work correctly.
Connection refused, as in HTTP 403 Forbidden? If yes, take a look at Apache's error_log - that'll show you exactly why it doesn't work - file system permission problem or Directory configuration directive not allowing access for the IP block (since depending on the port forwarding technique you may need to Allow from all instead from only your subnet - if you used DNAT on the router the remote IP will be the real IP, not your router's internal IP). _________________ Military Commissions Act of 2006: http://tinyurl.com/jrcto
"Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety."
-- attributed to Benjamin Franklin |
|
Back to top |
|
|
ihtruelsen Apprentice
Joined: 14 Mar 2003 Posts: 168 Location: Mill Bay, BC
|
Posted: Thu Feb 17, 2005 6:39 pm Post subject: |
|
|
In firefox, I get the connection refused popup. I checked the router config table and it is set up as correctly as any of the other ports. That is to say, I have port 22 forwarded and I get ssh access to the box. However, forwarding port 8000 doesn't get me access.
I have access set to deny from none and allow from all and have the listen set alternately set as listen 8000 and listen 192.168.1.151:8000.
Anything else I can be looking at? |
|
Back to top |
|
|
petlab Apprentice
Joined: 03 May 2004 Posts: 290 Location: Armpit, Oregon
|
Posted: Thu Feb 17, 2005 10:12 pm Post subject: |
|
|
You said port 8080 above, but 8000 in the other post. I assume thats a typo?
Did you get pages from the server machine itself, or another computer inside your network? _________________ Get Serious - Get JAWA CZ |
|
Back to top |
|
|
comprookie2000 Retired Dev
Joined: 25 Jul 2004 Posts: 925 Location: Sun City Center, Florida
|
Posted: Thu Feb 17, 2005 10:37 pm Post subject: |
|
|
Did you " Try to add apache to the users group with "usermod -g apache -G users apache", make sure the chmoding is correct and refresh." _________________ http://dev.gentoo.org/~dabbott/ |
|
Back to top |
|
|
|