Forum Moderators: phranque
Now I had to some more complicated proxying (adding variable to query string etc) and then used the RewriteEngine with RewriteCond and RewriteRule directives but I am losing my PreserveHostHeader, how should do this using the RewriteRule?
I want my Apache reverse proxy to listen to www.test.com and do my rewrite stuff and send request to ip x.x.x.x by preserve my request host header, should it do this by default?
If so, the general form
RewriteRule ^/test.asp(.*) http://[b]%{HTTP_HOST}[/b]:81/test.asp?userid=%{LA-U:REMOTE_USER} [QSA,P,L]