httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Raphael Bauduin" <>
Subject [users@httpd] set http header with mod_rewrite
Date Wed, 16 Jul 2008 12:37:56 GMT

is there a way to set a http header of a request proxied by mod_rewrite?

Here are more details:

I have an apache server ( configured as a reverse
proxy, and requests are actually handled by apache servers not
directly reachable from the outside. Those apache servers
(back1listening on and back2 on are configured for
doing virtual hosting.

back1 serves pages for the websites and

So resolves to the IP of, which will
proxy the request to back1.  But the Host header should be set as
back1 also serves

My current solution is to use mod_proxy with ProxyPass,
      ProxyPass /
      ProxyPassReverse /
and an entry in /etc/hosts:

I hoped to be able to write something similar to
    RewriteRule (.*)$1 [P,]

but no documentation seems to imply there's a way to do this.

I'll be happy to take all advice you might have!



Web database:
Free Software Developers Meeting:

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