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

2nd October 2010, 01:10 PM
|
|
Registered User
|
|
Join Date: Oct 2010
Posts: 7

|
|
|
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!!
|

2nd October 2010, 01:18 PM
|
 |
Un-Retired Administrator
|
|
Join Date: Mar 2004
Location: Salem, Mass USA
Posts: 13,930

|
|
|
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
|

2nd October 2010, 01:56 PM
|
|
Registered User
|
|
Join Date: Oct 2010
Posts: 7

|
|
|
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?
|

3rd October 2010, 03:01 AM
|
|
Registered User
|
|
Join Date: Jul 2005
Posts: 640

|
|
|
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
======
|

3rd October 2010, 09:21 AM
|
 |
Registered User
|
|
Join Date: Oct 2010
Location: west ocean
Posts: 7

|
|
Re: Problem accessing Apache home from external IP
Quote:
Originally Posted by chaylins
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.
|

3rd October 2010, 08:15 PM
|
|
Registered User
|
|
Join Date: Oct 2010
Posts: 7

|
|
|
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!
|

3rd October 2010, 09:32 PM
|
 |
Registered User
|
|
Join Date: Oct 2010
Location: west ocean
Posts: 7

|
|
|
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.
|

3rd October 2010, 10:20 PM
|
|
Registered User
|
|
Join Date: Oct 2010
Posts: 7

|
|
|
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
|

3rd October 2010, 10:46 PM
|
 |
Registered User
|
|
Join Date: Oct 2010
Location: west ocean
Posts: 7

|
|
|
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.
|

4th October 2010, 07:39 AM
|
|
Registered User
|
|
Join Date: Jul 2005
Posts: 640

|
|
|
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
======
|

4th October 2010, 05:57 PM
|
|
Registered User
|
|
Join Date: Oct 2010
Posts: 7

|
|
|
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!
|

4th October 2010, 08:41 PM
|
|
Registered User
|
|
Join Date: Jul 2005
Posts: 640

|
|
|
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
======
|

4th October 2010, 09:47 PM
|
|
Registered User
|
|
Join Date: Oct 2010
Posts: 7

|
|
|
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
|

5th October 2010, 09:09 AM
|
|
Registered User
|
|
Join Date: Jul 2005
Posts: 640

|
|
|
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
======
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Current GMT-time: 01:43 (Thursday, 23-05-2013)
|
|
 |
 |
 |
 |
|
|