On Wed, 2005-07-13 at 09:32 -0600, Kirk Hoganson wrote:
> You could use mod_rewrite to proxy rewrite all incoming requests to the 
> other system.  Every request that came in and matched the rewrite rule 
> would be redirected and proxied to the system specified in the rule. 
> mod_rewrite can be more than a little daunting but it could handle this 
> scenario.


Yep.. Mod_rewrite can be used for this. Didn't think of that since I was
thinking "Proxy" only.

That being said, using mod_rewrite I can rewrite on-the-fly to the
Nat'ed address. But what if the add has a DNS entry? Say

www.example2.com and www.example1.com both has the same external IP (say
10.1.1.1)

but www.example2.com is actually a NAT'ed server inside the firewall and
behind apache? What then?


> 
> Ow Mun Heng said the following:
> > I'm sure this can be done. 
> > 
> > I know about mod_proxy and mod_proxy_html and it's functions as a
> > reverse proxy. But the thing is my current understanding of these
> > mod_proxy is it's suitable only for servers which are in the internal
> > network and has names such as
> > 
> > www.example.com -> external IP
> > internalserver.example.com -> NAT IP
> > 
> > external -> internalserver
> > www.example.com/internalserver (using mod_proxy and mod_proxy_html)
> > 
> > what if the NAT IP'ed server has it's own DNS? say www.example2.com.
> > Can apache still be used to get to it? using Mod_proxy?
> > 
> > I'm just trying to figure out if this is a valid scenerio.
> > 

-- 
Ow Mun Heng
Gentoo/Linux on DELL D600 1.4Ghz 1.5GB RAM
98% Microsoft(tm) Free!! 
Neuromancer 00:01:58 up 11:27, 6 users, load average: 1.49, 1.23, 1.37 


-- 
[email protected] mailing list

Reply via email to