Hi,
I'm using Apache and mod_rewrite to rewrite all request from an external
URL to an internal URL. Unfortunatly the content contains sometimes FQDN
to the internal server, which needs to be mapped to the external URL
when access from the outside. So I figured mod_proxy_html should be the
module to use.
So I've set up a virtual host like this:
<VirtualHost 192.168.0.1:8000>
ErrorLog "/var/log/apache2/error.log"
# LogLevel debug
RewriteEngine On
RewriteLog "/var/log/apache2/rewrite.log"
# RewriteLogLevel 9
RewriteCond %{HTTP_HOST} ^[^.]+\.external\.domain\.com
RewriteRule ^(.+) http://%{HTTP_HOST}$1 [C]
RewriteRule ^
http://([^.]+)\.external\.domain\.com:8000(.*)$
http://$1.internal.domain
ProxyHTMLLogVerbose On
#ProxyHTMLExtended On
ProxyHTMLURLMap
http://([^.]+).internal.domain
http://$1.external.domain.com:8000
</VirtualHost>
If I understand the doc for mod_proxy_html I should see a bunch of
messages in the error-log because of "ProxyHTMLLogVerbose On"; but that
is not the case. Also the content is not being rewriten. Is there
something I'm missing?