LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-21-2006, 02:39 AM   #1
Eric_T
LQ Newbie
 
Registered: Jul 2006
Posts: 18

Rep: Reputation: 0
Apache Server Unavailable Outside Local PC's


A while back I set up a fully functioning ftp server from my slackware linux comp, and I recently set out to get a server started as well. I did everything I was supposed to and I tested it on my computer and it worked perfectly, went to my sisters and my dads and they both worked, then I had a friend try it and it didnt work on any computers that arent attached to our router. I did allow port forwarding on port 80 FYI.

I've been readin all over the place for a long time and I'm all out of ideas.

Any help?
 
Old 07-21-2006, 03:13 AM   #2
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
ftp uses port 21, http uses 80.

Did you forward port 21?
 
Old 07-21-2006, 03:21 AM   #3
Eric_T
LQ Newbie
 
Registered: Jul 2006
Posts: 18

Original Poster
Rep: Reputation: 0
I got the ftp server running completely, thats not a problem. I was stating that to demonstrate that I've done something similar.

I port forwarded 80 for my apache server.
 
Old 07-21-2006, 03:30 AM   #4
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Sorry, I'm confused. Your ftp server works OK on your local network, but not from outside, is that correct?

Do you have the firewall open for port 21?

Does your ISP block port 21?

Can you access web pages on your server from outside?

Just trying to get a picture of what works and what doesn't

Rgds

Bill
 
Old 07-22-2006, 02:16 AM   #5
Eric_T
LQ Newbie
 
Registered: Jul 2006
Posts: 18

Original Poster
Rep: Reputation: 0
Sorry, this is my fault for not explaining it right. Let me start over. Completely forget about the ftp server, the problem is I set up an apache server on my slackware linux computer, and I did everything the install said to and several tutorials, and it works exactly how I want it to. From my computer and all the computers on my router (sisters, dads) I just type in the address and it shows the exact files I want from vars/www/htdocs but when I tell any of my friends to go to the link it says cannot connect to host. I did port forwarding on port 80 at the beginning for apache...dont know what else to do.

please help, thanks
 
Old 07-22-2006, 03:07 PM   #6
jstine06
LQ Newbie
 
Registered: Jul 2006
Posts: 2

Rep: Reputation: 0
I am having the same problem. I've been searchin the net and the only thing I can find on the problem is that my ISP is blocking port 80... but I had a server up and running and had friends test if from outside my LAN and it worked fine, then i decided to test other Linux distributions so I erased my hard drive. Now I went back to the original one I was using and set up apache but now it only works inside my router. So its not my ISP thats causing the problem because it worked before... any ideas?
 
Old 07-23-2006, 01:14 AM   #7
Eric_T
LQ Newbie
 
Registered: Jul 2006
Posts: 18

Original Poster
Rep: Reputation: 0
Yeah, I already allowed port forwarding on 80, thats what everybody keeps telling me to do. Its frustrating.
 
Old 07-23-2006, 11:29 AM   #8
jstine06
LQ Newbie
 
Registered: Jul 2006
Posts: 2

Rep: Reputation: 0
Hey eric what does the browser say when someone outside your LAN tries to connect to your site? And I know you said this isn't the problem but it can't hurt to check again.. go to auditmypc.com do a firewall test and it will tell you the ports that are open on your server. This might be kind of a stupid question, but are you using another computer to search the internet other than your Linux computer? If the internet connection wasn't working on the computer with the server you would still be able to access it from other computers inside your LAN, but not from outside your router.
 
Old 07-23-2006, 11:43 AM   #9
Micro420
Senior Member
 
Registered: Aug 2003
Location: Berkeley, CA
Distribution: Mac OS X Leopard 10.6.2, Windows 2003 Server/Vista/7/XP/2000/NT/98, Ubuntux64, CentOS4.8/5.4
Posts: 2,986

Rep: Reputation: 45
This is hard to diagnose without seeing the httpd.conf (I think that's the correct file?) file. If your ports are forwarded, ISP isn't blocking port 80, no firewalls on your system and hardware, then I would say it's the apache configuration file.

also, make sure the IP address is correct and that your domain name, if you have one, is getting forwarded to the correct IP address.

Last edited by Micro420; 07-23-2006 at 11:45 AM.
 
Old 07-24-2006, 02:56 PM   #10
Eric_T
LQ Newbie
 
Registered: Jul 2006
Posts: 18

Original Poster
Rep: Reputation: 0
First of all, I am accessing the internet from my linux computer. Secondly, I checked auditmypc and it says port 80 isnt open...although on my router page it says it is. I used port forwarding to allow ssh and that worked fine, I just put port forwarding on 80 for "Apache" does the name have to be different?
 
Old 07-24-2006, 03:04 PM   #11
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Don't quite follow here Eric, but if you are trying to use "standard" names, http is more likely than Apache.
 
Old 07-24-2006, 03:13 PM   #12
Eric_T
LQ Newbie
 
Registered: Jul 2006
Posts: 18

Original Poster
Rep: Reputation: 0
Well in my router setup it asks in port forwarding (my answers in place):

Service Name: Apache
Starting Port: 80
Ending Port: 80
Server IP Address: 192.168.0.2 (works with ssh, ftp server, etc so i assume its the right address)
 
Old 07-24-2006, 03:24 PM   #13
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
A coupel of question

1. I don't know anything about your router, but is there a separate setting that allows you to open port 80? I wouldn't make the assumption that allowing forwarding necessary opens the port.

2. Do you have any firewall on your linux box, and is port 80 open on that?

I take it you named the Service Name Apache rather than the router.
 
Old 07-24-2006, 03:35 PM   #14
Eric_T
LQ Newbie
 
Registered: Jul 2006
Posts: 18

Original Poster
Rep: Reputation: 0
Umm....I dont have a firewall unless Slackware has a built in one which I dont think it does.

There is also an option for port triggering instead of forwarding thats ask for the following info...:

Name
Enable/Disable
Outgoing port
Incoming Port]

Is this what I'm looking for?

I used forwarding because it opened up port 22 for SSH perfectly.
 
Old 07-24-2006, 03:42 PM   #15
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Doesn't sound quite right, but is triggering set for any post numbers?

Another thought - try forwarding port 443, and try connecting to https://yourserver.

Make a quick check that apache is listening on port 443 as well (it may be in a separate conf file that apache loads, for example /etc/httpd/conf.d/ssl.conf (that's in FC5 anyway)

Edit

Try changing the service name to http

Is there any chance that, for some reason, you are only forwarding internal traffic to the http server? I assume the setup for port 80 is exactly the same as port 22.

Also, can you post your httpd.conf?

Last edited by billymayday; 07-24-2006 at 03:49 PM.
 
  


Reply



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

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



Similar Threads
Thread Thread Starter Forum Replies Last Post
5 PC's and a server how do I get the PC's to access stuff on the server TheHammer Linux - Networking 9 05-07-2007 11:05 PM
ssh connection refuse in local pc's! vador Linux - Software 1 03-23-2006 03:31 AM
Trouble viewing .php on local apache server using Mozilla shortname Linux - Software 2 03-25-2005 03:07 PM
Apache server works, but only on my local network munchies Linux - Networking 4 04-07-2004 09:18 AM
apache pictures unavailable/unreadable Longinus Linux - Software 0 03-24-2004 09:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:10 PM.

Main Menu
Advertisement
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
Twitter: @linuxquestions
Open Source Consulting | Domain Registration