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 23rd August 2012, 08:39 AM
glennzo's Avatar
glennzo Online
Un-Retired Administrator
 
Join Date: Mar 2004
Location: Salem, Mass USA
Posts: 13,974
linuxfirefox
I've an apache configuration question

Or so I think I do ...

Time was that I could get to my MoinMoin wiki from anywhere, your house, my house, anywhere, simply by typing http://glennzos.wickeduseless.wiki. Now with a new modem from Comcast this doesn't work if I'm sitting at home, as I am now. In order to access my wiki from home I need to use the ip address of the server, http://10.x.x.x/mywiki. That is not a problem except for the fact that at the bottom of most of the wiki pages I have a link to return to the home page. That link uses the sample URL above. How do I make this URL work for me while here at home? Can I alias it in the httpd.conf file so that it works regardless of whether I'm at home or somwhere else?
__________________
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
  #2  
Old 23rd August 2012, 06:57 PM
williamsj Offline
Registered User
 
Join Date: Jun 2011
Posts: 5
macossafari
Re: I've an apache configuration question

Does your wiki server use DHCP?
If so it is probable that your old modem/router supported DDNS (Dynamic DNS) and captured the hostname of the wiki server.
The new modem may not support, or may need setting up to support DDNS. Then it would resolve glennzos.wickeduseless.wiki to its local IP.

John
Reply With Quote
  #3  
Old 23rd August 2012, 08:11 PM
glennzo's Avatar
glennzo Online
Un-Retired Administrator
 
Join Date: Mar 2004
Location: Salem, Mass USA
Posts: 13,974
windows_xp_2003firefox
Re: I've an apache configuration question

Quote:
Originally Posted by williamsj View Post
Does your wiki server use DHCP?
No.
Quote:
Originally Posted by williamsj View Post
If so it is probable that your old modem/router supported DDNS (Dynamic DNS) and captured the hostname of the wiki server.
It did.
Quote:
Originally Posted by williamsj View Post
The new modem may not support, or may need setting up to support DDNS. Then it would resolve glennzos.wickeduseless.wiki to its local IP.

John
I don't think the new modem is capable, unless I misread.
__________________
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
  #4  
Old 23rd August 2012, 08:18 PM
Doug G Offline
Registered User
 
Join Date: Jul 2005
Posts: 640
windows_7chrome
Re: I've an apache configuration question

How do you resolve the url name? Do you have a static external IP and a DNS server, or dynamic DNS, or some local network DNS resolution? You can add a hosts file entry for the url on the machines you use to access your wiki from your LAN, but that won't help external users.

If your new comcast modem was due to some service upgrade on your internet connection maybe your ISP also decided to block http to prevent you from running an external web server on your connection. Many residential ISP do this.
__________________
======
Doug G
======
Reply With Quote
  #5  
Old 23rd August 2012, 09:11 PM
glennzo's Avatar
glennzo Online
Un-Retired Administrator
 
Join Date: Mar 2004
Location: Salem, Mass USA
Posts: 13,974
windows_xp_2003firefox
Re: I've an apache configuration question

Quote:
Originally Posted by Doug G View Post
How do you resolve the url name? Do you have a static external IP and a DNS server, or dynamic DNS, or some local network DNS resolution? You can add a hosts file entry for the url on the machines you use to access your wiki from your LAN, but that won't help external users.

If your new comcast modem was due to some service upgrade on your internet connection maybe your ISP also decided to block http to prevent you from running an external web server on your connection. Many residential ISP do this.
No static external IP address, but it seems to never change. I've had an account with dyndns.org for a few years now. dyndns sends the request to my external IP. Then it is forwarded through the router to the local IP address. This was with the old modem and router. Now the modem/router are one so I'm not using my old router. HTTP is not blocked by Comcast. Apparently they don't bother you if you have a low traffic web site such as mine.
__________________
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
  #6  
Old 23rd August 2012, 10:55 PM
Doug G Offline
Registered User
 
Join Date: Jul 2005
Posts: 640
windows_7chrome
Re: I've an apache configuration question

If you have a dyndns account as far as I know you need an agent program at your site. Some routers have dyndns functionality so you set up dyndns in the router, otherwise I believe you need to install a program on one of your computers to do the dns updating.

Did you set up port forwarding in the new router? You need to direct http traffic to the appropriate internal LAN IP.

Also, be aware some routers don't support "loop-around" network access, i.e., from inside your LAN you may not be able to use an external IP address to get back into your LAN. If that's the problem simply set up a hosts entry for the domain url using the LAN ip of the web server. That way your apache vhost will see a domain name (rather that http://10.x.x.x) and will work properly.
__________________
======
Doug G
======
Reply With Quote
  #7  
Old 23rd August 2012, 11:59 PM
glennzo's Avatar
glennzo Online
Un-Retired Administrator
 
Join Date: Mar 2004
Location: Salem, Mass USA
Posts: 13,974
linuxfirefox
Re: I've an apache configuration question

Quote:
Originally Posted by Doug G View Post
If you have a dyndns account as far as I know you need an agent program at your site. Some routers have dyndns functionality so you set up dyndns in the router, otherwise I believe you need to install a program on one of your computers to do the dns updating.
Thanks for the reminder. There is a program that I was using to update my public IP to dyndns but I stopped using it because the router handled that.
Quote:
Originally Posted by Doug G View Post
Did you set up port forwarding in the new router? You need to direct http traffic to the appropriate internal LAN IP.
Yes.

Quote:
Originally Posted by Doug G View Post
Also, be aware some routers don't support "loop-around" network access, i.e., from inside your LAN you may not be able to use an external IP address to get back into your LAN. If that's the problem simply set up a hosts entry for the domain url using the LAN ip of the web server. That way your apache vhost will see a domain name (rather that http://10.x.x.x) and will work properly.
I believe that this is the way the new router works based on what I've read on the 'net.
__________________
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
  #8  
Old 24th August 2012, 04:59 AM
Doug G Offline
Registered User
 
Join Date: Jul 2005
Posts: 640
windows_7chrome
Re: I've an apache configuration question

So is it working now? I hope so, I don't use dyndns and I'm running low on ideas
__________________
======
Doug G
======
Reply With Quote
  #9  
Old 24th August 2012, 07:26 AM
glennzo's Avatar
glennzo Online
Un-Retired Administrator
 
Join Date: Mar 2004
Location: Salem, Mass USA
Posts: 13,974
linuxfirefox
Re: I've an apache configuration question

Nothing has changed yet.
Quote:
simply set up a hosts entry for the domain url using the LAN ip of the web server
How do I do this?
__________________
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
  #10  
Old 24th August 2012, 08:25 AM
williamsj Offline
Registered User
 
Join Date: Jun 2011
Posts: 5
macossafari
Re: I've an apache configuration question

Quote:
Originally Posted by glennzo View Post
Nothing has changed yet. How do I do this?
Assuming a Windows client:

Edit the file (or create it) C:\Windows\System32\drivers\etc\hosts

Add a line which reads:

<LAN IP of your web server> glennzos.wickeduseless.wiki

This means that your PC will always go to the local address.

If it is a laptop of course it will do the same when you are out of the house, so then you would need to comment it out like so:

# <LAN IP of your web server> glennzos.wickeduseless.wiki
Reply With Quote
Reply

Tags
apache, configuration, question

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
Apache Configuration gihad Servers & Networking 6 16th June 2010 06:06 PM
HTTP/APACHE Server Configuration Question & httpd.conf jazzer386 Using Fedora 4 29th August 2008 07:15 PM
Apache configuration question leaded Servers & Networking 2 30th August 2006 08:05 PM


Current GMT-time: 18:29 (Wednesday, 19-06-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