I use mod_proxy and mod_proxy_html to redirect internally from www.domain.xyz virtual host to external domain www.domain.info.tm:
- Code: Select all
<VirtualHost *:80>
ServerName www.domain.xyz
ProxyRequests Off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPass / http://www.domain.info.tm/
ProxyPassReverse / http://www.domain.info.tm/
ProxyHTMLEnable On
ProxyHTMLExtended On
SetOutputFilter INFLATE;xml2enc;proxy-html;DEFLATE
ProxyHTMLURLMap http://www.domain.info.tm/ /
<Location />
Order allow,deny
Allow from all
</Location>
</VirtualHost>
...now i have the problem that the apache mod_proxy(_html) engine seems to manipulate a GZIP-encoded JSON response (Content-Encoding: gzip) to HTML or something like that - why?
something like that does also not work:
ProxyHTMLURLMap http://www.domain.info.tm/ /
ProxyHTMLURLMap /ajaxappfolder/ http://www.domain.info.tm/ajaxappfolder/
-> ProxyHTMLURLMap seems to ignore relative paths like /ajaxappfolder/ - it's not able to transform them to absolute format http://www.domain.info.tm/ajaxappfolder/ inside the HTML source code. right??
does somebody have a solution for that issue? thank you for your feedbacks.
with best regards,
jan