On Wed, Jul 16, 2008 at 2:54 PM, Severin Gehwolf <Severin.Gehwolf@xxxxxxxxxx> wrote: > Hi! > >> Here are more details: >> >> I have an apache server (front.example.com) configured as a reverse >> proxy, and requests are actually handled by apache servers not >> directly reachable from the outside. Those apache servers >> (back1listening on 10.0.0.1 and back2 on 10.0.0.2) are configured for >> doing virtual hosting. >> >> back1 serves pages for the websites www.example.com and www.test.com >> >> So www.example.com resolves to the IP of front.example.com, which will >> proxy the request to back1. But the Host header should be set as >> back1 also serves www.test.com. >> >> My current solution is to use mod_proxy with ProxyPass, >> ProxyPass / http://www.example.com/ >> ProxyPassReverse / http://www.example.com/ >> and an entry in /etc/hosts: >> 10.0.0.1 www.example.com >> >> I hoped to be able to write something similar to >> RewriteRule (.*) http://10.0.0.1$1 [P, HEADER:Host=www.example.com] >> >> but no documentation seems to imply there's a way to do this. >> >> I'll be happy to take all advice you might have! > > Maybe, you should look at ProxyPreserveHost > > http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxypreservehost > Yes, thanks! Still curious to know if there's a way to set a header with RewriteRule though ;-) Raph Raph > --- > Severin > > > --------------------------------------------------------------------- > The official User-To-User support forum of the Apache HTTP Server Project. > See <URL:http://httpd.apache.org/userslist.html> for more info. > To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx > " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx > For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx > > -- Web database: http://www.myowndb.com Free Software Developers Meeting: http://www.fosdem.org --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx