LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration

Welcome to LinuxQuestions.org, a friendly and active Linux Community.

You are currently viewing LQ as a guest. By joining our community you will have access to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!

Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.

Are you new to LinuxQuestions.org? Visit the following links:
Site Howto | Site FAQ | Sitemap | Register Now

If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.

Go Back   LinuxQuestions.org > Forums > Linux > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Reply
 
Thread Tools
Old 05-22-2008, 10:38 AM   #1
The_Beast
LQ Newbie
 
Registered: Mar 2008
Distribution: Slackware 12
Posts: 22
Apache forwarding


[Log in to get rid of this advertisement]
Hi, I'm trying to forward apache so that other computers can access my directory either from the lan or the internet, I have a router which manages both the LAN and the aDSL connection, i've configured it so apache will be forwarded, but I still can't access it from any other PC, can someone point out any other steps that must be taken?
The_Beast is offline     Reply With Quote
Old 05-22-2008, 12:24 PM   #2
Hangdog42
Guru
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 5,711
I'm not entirely sure what you mean by "forward apache". Do you want others to be able to see the web pages you're hosting on your Apache server? If that is the case, then you need to set up your router to forward port 80 to the IP address of your Apache machine. If you're trying to do something else, please provide more details and we'll try to figure it out.
Hangdog42 is offline     Reply With Quote
Old 05-22-2008, 12:45 PM   #3
jimkalb
LQ Newbie
 
Registered: Apr 2004
Distribution: Slackware 12.1
Posts: 13
It's a little obscure just what you've done and even what you want to do. Can you connect to the Apache server from localhost? What address are you pointing your other machines to? Is it the same problem both from the LAN and the Internet?
jimkalb is offline     Reply With Quote
Old 05-22-2008, 01:09 PM   #4
The_Beast
LQ Newbie
 
Registered: Mar 2008
Distribution: Slackware 12
Posts: 22
I'm trying to access web pages from the other computers, on my computer it works fine, and I also set up my router to forward port 80 to the IP address of my PC, but still no luck accessing web pages from the LAN, I haven't tried internet yet.

Last edited by The_Beast : 05-22-2008 at 01:13 PM.
The_Beast is offline     Reply With Quote
Old 05-23-2008, 12:15 AM   #5
zux
Member
 
Registered: Jul 2006
Location: latvia
Distribution: slackware
Posts: 72
are you trying to access apache from the lan pointing to the outside ip?
I had this problem and didn't find a solution to it. a workaround is to have youre own dns server, so from lan the address bla.com resolves to 192.168... but from the outside it shows your real IP.
you can probably access it from the internet, but not from lan.
as much as i know it's a routing problem and can't be fixed. maybe somone can give a wokraround here?
zux is offline     Reply With Quote
Old 05-23-2008, 01:03 AM   #6
rtspitz
Member
 
Registered: Jan 2005
Location: germany
Distribution: suse, opensuse, others for testing
Posts: 268
on zyxel routers there's an option called "nat loopback". maybe you can find something like that for your box as well.
rtspitz is offline     Reply With Quote
Old 05-23-2008, 02:28 AM   #7
jimkalb
LQ Newbie
 
Registered: Apr 2004
Distribution: Slackware 12.1
Posts: 13
Can you communicate with your computer in other ways from other computers on the LAN (ping it, telnet to it, ftp to it)?
jimkalb is offline     Reply With Quote
Old 05-23-2008, 07:33 AM   #8
Hangdog42
Guru
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 5,711
One other thing to keep in mind is that not all routers handle the external IP address and/or domain name properly when accessing from a LAN computer. I've got two routers, one is a Motorola and the other is a Linksys. If I have the Linksys facing the Internet and go to http://mydomain.com from a computer on the LAN, I get to my web server the way I expect. However, if I have the Motorola facing the internet and do the same thing, I end up getting the Motorola's web page, despite the fact that someone from outside of my LAN gets directed to my web page. If I use the LAN IP address of the web server, it works just fine on both routers.
Hangdog42 is offline     Reply With Quote
Old 05-24-2008, 04:20 AM   #9
The_Beast
LQ Newbie
 
Registered: Mar 2008
Distribution: Slackware 12
Posts: 22
I've tried accessing it both from the lan and from the internet. In the first case I entered 192.168.1.66 which is my computers and I got a timeout error, also i tested from the internet by using the external IP we get from the ISP but nothing, i'm not sure whether or not it's something in my configuration or the router, does inetd and httpd.conf got to do anything with this?I've put ALL:ALL:ALLOW in the later.
I haven't tried telnet but with samba I could see it on the other computers but couldn't access it,not even a password prompt appeared...
The_Beast is offline     Reply With Quote
Old 05-24-2008, 07:02 AM   #10
Hangdog42
Guru
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 5,711
Quote:
In the first case I entered 192.168.1.66 which is my computers and I got a timeout error,
That suggests a problem on the server end. From the server, can you get a web page displayed by going to http://localhost ? If not, that suggests a pretty fundamental problem with Apache, like its not running. If you can, then there may be some problem like a firewall that is interfering. Have you added a firewall to the web server?
Quote:
does inetd and httpd.conf got to do anything with this?
Unless you've done something, inetd has nothing to do with this, but httpd.conf certainly does.

Quote:
I've put ALL:ALL:ALLOW in the later.
Um, are we talking about httpd.conf here or hosts.allow/hosts.deny. That doesn't look like an httpd.conf directive to me.
Hangdog42 is offline     Reply With Quote
Old 05-24-2008, 07:10 AM   #11
The_Beast
LQ Newbie
 
Registered: Mar 2008
Distribution: Slackware 12
Posts: 22
Quote:
That suggests a problem on the server end. From the server, can you get a web page displayed by going to http://localhost ? If not, that suggests a pretty fundamental problem with Apache, like its not running. If you can, then there may be some problem like a firewall that is interfering. Have you added a firewall to the web server?
localhost works ok, i'll try to find if something is blocking the connections,but i didn't set up no firewall...

And yeah I meant to say hosts.allow.
The_Beast is offline     Reply With Quote

Reply

Submit thread to Digg | Submit thread to del.icio.us | Submit to LQ Bookmarks

« Back to Top »

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
apache port forwarding. sraju Linux - Server 5 10-26-2006 06:16 AM
Apache port forwarding kg4ysy Linux - Software 2 06-14-2006 01:57 PM
port forwarding apache from 80 to 8080 chess Linux - General 11 09-27-2005 02:21 PM
Port Forwarding for Apache IlyaZ Linux - Networking 14 05-15-2005 04:41 AM
seperate apache, port forwarding kires Linux - General 2 04-24-2002 12:37 AM



Add LQ To Your Yahoo Add LQ To Your Google Add LQ To Your MSN Add LQ To Your Blog
All times are GMT -5. The time now is 05:10 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
RSS2  LQ Podcast
RSS2  LQ Radio
Open Source Consulting | Domain Registration