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