LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-17-2010, 10:03 AM   #1
tebucky
Member
 
Registered: Mar 2004
Posts: 89

Rep: Reputation: 15
Issue accessing apache2 externally


All,

I'm running Ubuntu 9.10 on my local LAN (192.168.1...). Apache2 is set up and I'm able to resolve my domain/web directories behind the router but externally I'm not able to connect. The router is routing port 80 traffic to the correct host and apache is listening on that port.

Through my registrar the A record is pointing to the appropriate IP. Any thoughts on what I can do to get the web server to ack external requests?
 
Old 02-17-2010, 10:12 AM   #2
Lowell1947
Member
 
Registered: May 2007
Location: Florida
Distribution: Ubuntu, SuSE10.2, LFS, Ubuntu Server (AMD64), Windows 7, Mac OSX
Posts: 30

Rep: Reputation: 16
Are you on a static or dynamic IP. If you are on a dynamic IP you will need to get an account with dyndns.org or some other group to point towards your IP.
 
Old 02-17-2010, 10:12 AM   #3
nerak99
Member
 
Registered: Feb 2006
Distribution: FC 15
Posts: 42

Rep: Reputation: 2
Clarifications sought

Can people access apache on the lan or just localhost?

Do you get anything in the https/apache2 logs at all?

If you do "telnet myserver.net 80" from the WAN, do you connect or get a reject or what?
 
Old 02-17-2010, 10:17 AM   #4
prasanta
Member
 
Registered: Mar 2005
Location: India
Distribution: Debian
Posts: 368

Rep: Reputation: 37
Must be some firewall/NAT issue since you are able to connect/telnet it from the local LAN.

--
Prasanta
 
Old 02-17-2010, 10:40 AM   #5
tebucky
Member
 
Registered: Mar 2004
Posts: 89

Original Poster
Rep: Reputation: 15
Everything behind the router is working as designed. I just can't access it externally at all. The apache logs are generating messages when I hit a page behind the router and giving the LAN IP in the message
 
Old 02-17-2010, 10:49 AM   #6
prasanta
Member
 
Registered: Mar 2005
Location: India
Distribution: Debian
Posts: 368

Rep: Reputation: 37
Does your domain resolve from outside? And what are your NAT rules for the same.

--
Prasanta
 
Old 02-17-2010, 10:55 AM   #7
tebucky
Member
 
Registered: Mar 2004
Posts: 89

Original Poster
Rep: Reputation: 15
My domain does not resolve from the outside. My NAT rule forwards port 80 traffic to LAN IP 192.168.1.102. Do you need more info?
 
Old 02-17-2010, 11:00 AM   #8
prasanta
Member
 
Registered: Mar 2005
Location: India
Distribution: Debian
Posts: 368

Rep: Reputation: 37
So, in that case you need to create a DNS entry for the same. Why don't you then try with the public IP instead.

--
Prasanta
 
Old 02-17-2010, 11:14 AM   #9
tebucky
Member
 
Registered: Mar 2004
Posts: 89

Original Poster
Rep: Reputation: 15
The public IP does not resolve either....
 
Old 02-17-2010, 11:28 AM   #10
prasanta
Member
 
Registered: Mar 2005
Location: India
Distribution: Debian
Posts: 368

Rep: Reputation: 37
Try telnet with the public_ip and port 80. In case this does not go through, then there is a problem with the firewall rules.

--
Prasanta
 
Old 02-17-2010, 11:37 AM   #11
tebucky
Member
 
Registered: Mar 2004
Posts: 89

Original Poster
Rep: Reputation: 15
No dice on the telent.... Also, I disabled my firewall and it still doesn't work from the outside. Is it a possible settings issue with my domain registrar?
 
Old 02-17-2010, 11:55 AM   #12
prasanta
Member
 
Registered: Mar 2005
Location: India
Distribution: Debian
Posts: 368

Rep: Reputation: 37
In that case I assume, there are issues with your firewall, since it is not accepting incoming request. There is no issue with the registar.

--
Prasanta
 
Old 02-17-2010, 12:17 PM   #13
tebucky
Member
 
Registered: Mar 2004
Posts: 89

Original Poster
Rep: Reputation: 15
So I'm not running a firewall. I use firestarter on the ubuntu host and its currently off... Anyy ideas on what I should/could check?
 
Old 02-18-2010, 12:36 PM   #14
tebucky
Member
 
Registered: Mar 2004
Posts: 89

Original Poster
Rep: Reputation: 15
Any ideas on how to fix the external issue?
 
Old 02-18-2010, 07:31 PM   #15
ash_zz_00
Member
 
Registered: Aug 2009
Distribution: Slackware 13.0
Posts: 66

Rep: Reputation: 17
Double check if your router IP is indeed public and not behind some other router. Go to a website like http://whatismyip.com/ to see what IP it reports.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Issue with IP Accessing?? ajeetraina Linux - Newbie 3 06-19-2008 01:57 AM
Accessing web app externally throws 403, internally works. gillyd Linux - Server 5 04-21-2008 07:36 PM
Apache2 Host Issue mbazdell Linux - Networking 10 11-14-2007 05:53 AM
Apache2 Interface Issue subcon Linux - Enterprise 2 08-08-2007 12:41 PM
Accessing virtual servers externally Inexactitude Linux - Networking 2 04-18-2004 01:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:54 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration