Problem with mod_proxy_html and AJAX service returns GZIP

Alles, was den Apache betrifft, kann hier besprochen werden.

Problem with mod_proxy_html and AJAX service returns GZIP

Postby jmar83 » 07. January 2018 04:25

Hi there

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
jmar83
 
Posts: 20
Joined: 07. January 2018 04:10
XAMPP version: Apache 2.4
Operating System: Debian 9

Re: Problem with mod_proxy_html and AJAX service returns GZI

Postby jmar83 » 10. March 2018 12:33

No anwser, maybe the problem is too complex...?
Grüsse,
Jan
jmar83
 
Posts: 20
Joined: 07. January 2018 04:10
XAMPP version: Apache 2.4
Operating System: Debian 9


Return to Apache

Who is online

Users browsing this forum: No registered users and 32 guests