httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joshua Slive" <>
Subject Re: [users@httpd] mod_rewrite help
Date Sat, 14 Jul 2007 18:27:11 GMT
On 7/14/07, Jeff Murch <> wrote:
> I am running into a problem with a reverse proxy where dynamic links to
> detail records are showing up referring to the main webserver on a 10
> network instead of the NAT'd public address of the proxy.
> An example would be a link showing up from the proxy to the end user's
> browser as obviously won't work and needs a rule so
> that any occurrence of is replaced with with the
> remainder of the URL left unchanged.
> From my understanding the most appropriate way to do this would be with
> mod_rewrite?

mod_rewrite is not likely the right tool, since it only deals with
meta-data (request and response headers) and not the content of your

You should start by asking where this internal IP is coming from. Is
it hard-coded in your application someplace? Can you configure your
application to use the public IP? If the application is reading the IP
from the Host: request header, then you could consider using the
ProxyPreserveHost directive to fool it into thinking it has a
different name.

Alternatively, if you really need to rewrite links inside html pages,
the only real solution is mod_proxy_html. Google for it.

Finally, it may be that when you refer to "links", you really mean
"redirects". If this is so, you should make sure you have properly
configured your ProxyPassReverse directive.


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message