Just a quick simple reference point for me, as I am using this while I migrate websites from Tampa to Oblivion (Oblivion is not yet public, so I need Tampa to forward HTTP requests of websites that have moved onto Oblivion).
RewriteEngine on
RewriteCond %{HTTP_HOST} ^[a-zA-Z0-9.]*hostname.com$ [NC]
RewriteRule ^(.*)$ http://internal-hostname/$1 [P,L]
Note that this needs mod_proxy as well as mod_rewrite to be enabled.









May 13th, 2008 at 11:43 am
Actually, a better way of doing what I’m trying to do is to just use mod_proxy and using ProxyPass alone:
<VirtualHost *:80>
ServerName somehostname.somewhere.com
ProxyPreserveHost On
ProxyPass / http://internal-hostname/
ProxyPassReverse / http://internal-hostname/
</VirtualHost>