Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Servers & Networking
FedoraForum Search

Forgot Password? Join Us!

Servers & Networking Discuss any Fedora server problems and Networking issues such as dhcp, IP numbers, wlan, modems, etc.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 2nd October 2010, 01:10 PM
chaylins Offline
Registered User
 
Join Date: Oct 2010
Posts: 7
linuxfedorafirefox
Problem accessing Apache home from external IP

Hello,

I've set up Apache on my Fedora 12 machine and have got it working on my internal IP (localhost/192.168.0.15) however, when I try to access it through my external IP I am taken to my router login page.

What do I need to do to route my external IP to my internal static IP of 192.168.0.15?

Thanks in advance!!
Reply With Quote
  #2  
Old 2nd October 2010, 01:18 PM
glennzo's Avatar
glennzo Offline
Un-Retired Administrator
 
Join Date: Mar 2004
Location: Salem, Mass USA
Posts: 13,930
linuxfedorafirefox
Re: Problem accessing Apache home from external IP

Port forward 80 to the local ip address of the server in the router configuration?
__________________
Glenn
The Bassinator © ®


Laptop: Toshiba Satellite / Intel Core 2 Duo 1.73 GHz / 2GB / 160GB / Intel Mobile 945GM/GMS/GME/943/940GML Integrated Graphics
Desktop: BioStar MCP6PB M2+ / AMD Phenom 9750 Quad Core / 4GB / 1TB SATA / 500GB SATA / EVGA GeForce 8400 GS 1GB
Reply With Quote
  #3  
Old 2nd October 2010, 01:56 PM
chaylins Offline
Registered User
 
Join Date: Oct 2010
Posts: 7
linuxfedorafirefox
Re: Problem accessing Apache home from external IP

Hi, Thanks for the reply!

I think I've forwarded the port ok. The router I have is a bit different than usual. I need to setup a service which basically says what ports to forward and then I need to setup a firewall rule for inbound/outbound traffic.

So I created an inbound rule using the service I created and on the "send to LAN server" I entered in my local IP and it still tries to take me to my router login - could it be that the traffic is not coming through port 80?
Reply With Quote
  #4  
Old 3rd October 2010, 03:01 AM
Doug G Offline
Registered User
 
Join Date: Jul 2005
Posts: 640
linuxfedorafirefox
Re: Problem accessing Apache home from external IP

The routers I use have a setting to allow or turn off access to the router configuration screens from the WAN side. Maybe your router is set to do external router configuration on port 80. Just a guess.
__________________
======
Doug G
======
Reply With Quote
  #5  
Old 3rd October 2010, 09:21 AM
ProjektHosting's Avatar
ProjektHosting Offline
Registered User
 
Join Date: Oct 2010
Location: west ocean
Posts: 7
linuxfedorafirefox
Wink Re: Problem accessing Apache home from external IP

Quote:
Originally Posted by chaylins View Post
Hello,

I've set up Apache on my Fedora 12 machine and have got it working on my internal IP (localhost/192.168.0.15) however, when I try to access it through my external IP I am taken to my router login page.

What do I need to do to route my external IP to my internal static IP of 192.168.0.15?

Thanks in advance!!
Hi Chaylins,

The IP address you are given is from an outside server such as comcast, quest, etc. so when trying to have your external IP act as a name server it will probably just block the connection. It's helpful to have a static ip address. How do you receive your IP data? And have your checked your DNS server to see if there may be something potentially blocking it?

Hopefully you are just missing a step, there is also the chance that your internet provider is not willing to allow you to do everything you want with the development of networking using their machine, you are renting, and, or, probably have no idea where it physically is.

I like to think mine is somewhere North.
Reply With Quote
  #6  
Old 3rd October 2010, 08:15 PM
chaylins Offline
Registered User
 
Join Date: Oct 2010
Posts: 7
linuxfedorafirefox
Re: Problem accessing Apache home from external IP

Hi!

I've got an account with dyndns and have set up my router so that it relays changes to my IP back to my DNS account.

The machine I have set up for the server is just a home laptop with a standard ISP (Sky in the UK) and they assign me my IP dynamically so I dont think I'll be able to get a static IP off them.

Im new to this whole networking thing and so unfortunately you are going to have to spell out how to carry out all those checks you suggested etc.

What I've essentially done so far is:

1) Installed Apache (no config changes made)
2) Assigned my pc a static internal IP (192.168.0.15)
3) Created an account with dyndns and created a host (hamafu.dyndns.org)
4) Added service and firewall rule to forward all incoming traffic from port 80 to 192.168.0.15
5) Added dyndns information to the router config so it auto updates changes in my external IP.

Thanks for your continued support!
Reply With Quote
  #7  
Old 3rd October 2010, 09:32 PM
ProjektHosting's Avatar
ProjektHosting Offline
Registered User
 
Join Date: Oct 2010
Location: west ocean
Posts: 7
linuxfedorafirefox
Re: Problem accessing Apache home from external IP

I just went to your site hamafu.dyndns.org
It is showing apache on port 80 fine.

You will need to edit a few things in /etc/httpd/conf/httpd.conf

like what other directories you may want to host, so you can setup your home directory then a folder inside as the homepage, or make it so
hamafu.dyndns.org/~username points to your directory. You will need to set that up through the httpd.conf file or you will need to also set it up through a .htaccess file.

Are you trying to host only files? if so there isn't much more you need to do. Well, there is but you can have everything setup and working pretty quickly.

http://httpd.apache.org/docs/2.2/howto/htaccess.html

Apache has an easy to follow manual. Check out that page and what it has to say about httpd.conf though inside the file I believe it will put comments throughout it.
Reply With Quote
  #8  
Old 3rd October 2010, 10:20 PM
chaylins Offline
Registered User
 
Join Date: Oct 2010
Posts: 7
linuxfedorafirefox
Re: Problem accessing Apache home from external IP

Hi,

Do you mean you were able to access hamafu.dyndns.org and see the Apache welcome page?

When I visit hamafu.dyndns.org I get my router login page still

I've added an index.html file to /var/www/html/ to see if it picks up that and displays it instead but no luck
Reply With Quote
  #9  
Old 3rd October 2010, 10:46 PM
ProjektHosting's Avatar
ProjektHosting Offline
Registered User
 
Join Date: Oct 2010
Location: west ocean
Posts: 7
linuxfedorafirefox
Re: Problem accessing Apache home from external IP

I'd suggest going to the manufactors website of the router and check out the manual on you specific one because each allow you to do nearly the same thing, but are written in different languages depending on your router. If all else then plug it into your modem and see if it works.
Reply With Quote
  #10  
Old 4th October 2010, 07:39 AM
Doug G Offline
Registered User
 
Join Date: Jul 2005
Posts: 640
windows_7firefox
Re: Problem accessing Apache home from external IP

One more guess, check your hosts file and resolv.conf on your computer. Maybe you have some leftover entry that's redirecting you to the wrong IP.
__________________
======
Doug G
======
Reply With Quote
  #11  
Old 4th October 2010, 05:57 PM
chaylins Offline
Registered User
 
Join Date: Oct 2010
Posts: 7
linuxfedorafirefox
Re: Problem accessing Apache home from external IP

Hiya,

I've found the manufacturers manual and checked that the ports are indeed forwarded correctly for a web server, so I think everything in that respect is ok.

With regards to my hosts file, it contained the below entries:

Code:
# hostname crizzle added to /etc/hosts by anaconda
192.168.0.15	crizzle	# Added by NetworkManager
127.0.0.1	localhost.localdomain	localhost
::1	crizzle	localhost6.localdomain6	localhost6
and my resolve.conf file had the following in it:

Code:
# Generated by NetworkManager
nameserver 192.168.0.1
Not sure if this is what you would expect to see or if I need to add something to these files?

Thanks!
Reply With Quote
  #12  
Old 4th October 2010, 08:41 PM
Doug G Offline
Registered User
 
Join Date: Jul 2005
Posts: 640
linuxfedorafirefox
Re: Problem accessing Apache home from external IP

I was thinking about the time I made a manual hosts entry on a workstation during some application development, then promptly forgot about it. A year or so later I wasted a day trying to figure out why that workstation had a problem with a particular site, and it was because the forgotten hosts entry was resolving the site name to a no-longer-in-existence server IP.

I don't see anything like that in what you posted.
__________________
======
Doug G
======
Reply With Quote
  #13  
Old 4th October 2010, 09:47 PM
chaylins Offline
Registered User
 
Join Date: Oct 2010
Posts: 7
linuxfedorafirefox
Re: Problem accessing Apache home from external IP

I think some progress has been made.

I think now when you access hamafu.dyndns.org you get a "URL not found on this server". I had a friend give it a go and he got this error. I put a index.html file in /var/www/html.

I've been told if you try to access your webserver internally when you are behind a router using the external address it will always default to the router login page.

Does this sound like progress? lol
Reply With Quote
  #14  
Old 5th October 2010, 09:09 AM
Doug G Offline
Registered User
 
Join Date: Jul 2005
Posts: 640
windows_7firefox
Re: Problem accessing Apache home from external IP

Quote:
I've been told if you try to access your webserver internally when you are behind a router using the external address it will always default to the router login page
This depends on the router. Some will allow you to use the external IP to access a server from another computer within the LAN, others will not.
__________________
======
Doug G
======
Reply With Quote
Reply

Tags
accessing, apache, external, home, problem

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fedora 11 weird problem accessing accessing port 80 egstern Servers & Networking 0 1st March 2010 03:48 AM
accessing home computer farishta Servers & Networking 8 10th May 2008 04:09 PM
Accessing external 60GB HDD (NTFS format) via the terminal keatonvictor Hardware & Laptops 1 25th July 2007 02:14 PM
Accessing External Media from Apache Plankton Using Fedora 0 14th November 2006 04:48 AM
accessing home machine from work..... huskers Servers & Networking 10 11th March 2005 02:59 AM


Current GMT-time: 01:43 (Thursday, 23-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat