On Wed, Jul 16, 2008 at 3:06 PM, Nikhil <mnikhil@xxxxxxxxx> wrote: > > eg: > RewriteRule ^/(.*)$ http://www/~me/printenv.cgi > [L,P,E=remoteUser:%{LA-U:REMOTE_USER}] > RequestHeader set X_REMOTE_USER %{remoteUser}e > RequestHeader add "X-H-USER" "%{remoteUser}e" > I can't get this to work. Are you sure RequestHeader changes the headers of the request sent to the backend server? The doc (http://httpd.apache.org/docs/2.0/mod/mod_headers.html#requestheader) says "The header is modified just before the content handler is run", which I understand as this changes the incoming request before it is handled. But I tried to change the outgoing request to the backend apache server serving the content. Here's my config: RewriteEngine On RewriteRule ^(.*) http://10.12.12.5$1 [L,P,E=hostname:%{HTTP_HOST}] RequestHeader set Host %{hostname}e ProxyPassReverse / http://10.12.12.5/ Let me know if I missed something! Thanks Raph -- 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