Welcome to HostingForumz.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

How to setup apache with dynamic IP behind a router/firewa..

 
   Web Hosting Problem Solving Community! (Home) -> Apache RSS
Next:  Problem with virtual host - WAP site 403 Error  
Author Message
shoad316

External


Since: Oct 03, 2003
Posts: 1



(Msg. 1) Posted: Fri Oct 03, 2003 11:22 am
Post subject: How to setup apache with dynamic IP behind a router/firewall?
Archived from groups: alt>apache>configuration (more info?)

Hey all,

I hope that question made sense. Just curious, I have the latest
version of apache setup on my RH9 system at home. My ISP has
allocated me a dynamic IP. On my router/firewall I redirected port 80
to a computer on my lan 192.168.0.3

I have a script which updates a webpage with my dynamic IP and I use
that to connect to my server at home.

I installed Gallery last night (opensource picture web management
software). I can get to the root window but my browser can't find any
of the pictures because its looking for 192.168.0.3. Obviously, it
won't find it.

Is there any way to configure Apache to handle this? I guess my only
other option would be to buy a domain name and setup an account with a
dynamic DNS provider.

Any suggestions? If you could cc my hotmail account it would be
greatly appreciate it. I'm at work and google news takes many hours
to update.

Thanks!

 >> Stay informed about: How to setup apache with dynamic IP behind a router/firewa.. 
Back to top
Login to vote
davideyeahsure

External


Since: Nov 03, 2003
Posts: 2994



(Msg. 2) Posted: Fri Oct 03, 2003 8:24 pm
Post subject: Re: How to setup apache with dynamic IP behind a router/firewall? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Dave <shoad316 DeleteThis @hotmail.com> wrote:
 > allocated me a dynamic IP. On my router/firewall I redirected port 80
 > to a computer on my lan 192.168.0.3
<zap>
 > of the pictures because its looking for 192.168.0.3. Obviously, it
 > won't find it.

Your router isn't doing his job correctly. If he did you should see the
correct IP.

You can always use something like noip or dyndns that will associate
a domain name to your non-static ip and then use the domain name
instead of the ip, then configure apache to use the domain name
instead of the 192.168.0.x ip.

Davide<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: How to setup apache with dynamic IP behind a router/firewa.. 
Back to top
Login to vote
derek3

External


Since: Jan 03, 2004
Posts: 3



(Msg. 3) Posted: Sat Jan 03, 2004 7:12 pm
Post subject: Re: How to setup apache with dynamic IP behind a router/firewall? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 3 Oct 2003 08:22:36 -0700, shoad316.TakeThisOut@hotmail.com (Dave) wrote:

 >Hey all,
 >
 > I hope that question made sense. Just curious, I have the latest
 >version of apache setup on my RH9 system at home. My ISP has
 >allocated me a dynamic IP. On my router/firewall I redirected port 80
 >to a computer on my lan 192.168.0.3
 >
 >I have a script which updates a webpage with my dynamic IP and I use
 >that to connect to my server at home.
 >
 >I installed Gallery last night (opensource picture web management
 >software). I can get to the root window but my browser can't find any
 >of the pictures because its looking for 192.168.0.3. Obviously, it
 >won't find it.
 >
 >Is there any way to configure Apache to handle this? I guess my only
 >other option would be to buy a domain name and setup an account with a
 >dynamic DNS provider.
 >
 >Any suggestions? If you could cc my hotmail account it would be
 >greatly appreciate it. I'm at work and google news takes many hours
 >to update.
 >
 >Thanks!

I think I may know what your problem is.

Are you trying, from your Apache web-server PC, to access the
web-server through your public web-page?

Does your local dynamic web-page work if you type in <a style='text-decoration: underline;' href="http://127.0.0.1" target="_blank">http://127.0.0.1</a>
in the address bar?

If so, I think it's because you are trying to access your public
(internet) side IP address from your local network.

Your router will see this address and say "ah, I need to forward this
to the internet", which then gets forwarded back to itself, and won't
work.

What I do is put all the names I use for my public address in my local
hosts file - so you would put an entry like this in it:-

  127.0.0.1 www.public.com

This got around my problem.<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: How to setup apache with dynamic IP behind a router/firewa.. 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Apache 2.0 caching dynamic scripts? - I'm writing some dynamic Ruby scripts that are run using the fastCGI module. I'm having a weird problem that I recall experiencing with PHP scripts as well. It only happens for me in Apache 2.0. It appears that Apache itself is caching the scripts....

Apache 2 and sub-domain setup - Ok I have what I think is a pretty darn nice basic setup of Windows 2000 Adv Server with the Apache 2.0.46 on top of it with all the goodies -Python, SSL, Perl, PHP, etc (compliments of the Apache Triad package - terriffic package) and I have my domain o...

Apache - Configuration - Setup - Files - Modifications - Hi All, I would be glad if somebody can help me with this : I need to add a piece of code / module in the apache server which will should be instantiated during, starting of services by apache. For example, a module which will invoke a program /..

Setenv with a dynamic variable - Hi all, I would like to use Setenv directive like this : SetEnv USER_AUTH ${SSL_CLIENT_S_DN_Email} but the result is "${SSL_CLIENT_S_DN_Email}" (with phpinfo) and not the email. Can someone help me ? Thanks!

dynamic virtualhost w/jsp (jserv) issue - hey there - i'm hoping this is simple... I'm having an issue with one line vs. another. The commented out rewrite rule is the one that compiles my index.jsp just fine, using Jserv. If i use the uncommented rewrite rule that I WANT to use below, to get th...
   Web Hosting Problem Solving Community! (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]