Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
cannot connect to apache from outside my computer
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
ihtruelsen
Apprentice
Apprentice


Joined: 14 Mar 2003
Posts: 168
Location: Mill Bay, BC

PostPosted: Wed Feb 16, 2005 6:22 pm    Post subject: cannot connect to apache from outside my computer Reply with quote

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
View user's profile Send private message
moocha
Watchman
Watchman


Joined: 21 Oct 2003
Posts: 5722

PostPosted: Wed Feb 16, 2005 6:25 pm    Post subject: Reply with quote

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
View user's profile Send private message
ihtruelsen
Apprentice
Apprentice


Joined: 14 Mar 2003
Posts: 168
Location: Mill Bay, BC

PostPosted: Thu Feb 17, 2005 6:39 pm    Post subject: Reply with quote

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
View user's profile Send private message
petlab
Apprentice
Apprentice


Joined: 03 May 2004
Posts: 290
Location: Armpit, Oregon

PostPosted: Thu Feb 17, 2005 10:12 pm    Post subject: Reply with quote

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
View user's profile Send private message
comprookie2000
Retired Dev
Retired Dev


Joined: 25 Jul 2004
Posts: 925
Location: Sun City Center, Florida

PostPosted: Thu Feb 17, 2005 10:37 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum