Apapche Proxy Support ProxyHTMLURLMap , can be change Absolute path in html content.
code:
<IfModule mod_proxy.c>
ProxyRequests Off
ProxyHTMLExtended On
ProxyPass /test1/ http://10.1.1.1/
<Location /test1/>
ProxyPassReverse /
ProxyHTMLURLMap http://10.1.1.1 /test1
SetOutputFilter proxy-html
ProxyHTMLURLMap / /test1/
RequestHeader unset Accept-Encoding
</Location>
</IfModule>
Nginx How to config it?