RE: proxy urlmapping outside of the path

Marc <[email protected]> Fri, 31 Jan 2025 23:24:07 +0000
Newsgroups gmane.comp.apache.user
Message-ID <[email protected]>
> 
> I have a config and actually only want to allow access to a specific
> path xxx of the proxied host nothing else. However that path on the
> proxied host is refering to files eg in the root
> 
>     ProxyPreserveHost Off
>     ProxyAddHeaders On
>     SetOutputFilter  proxy-html
>     ProxyHTMLEnable On
>     ProxyHTMLExtended On
> 
>     ProxyPass        "https://${proxyhost}/xxx"
>     ProxyPassReverse "https://${proxyhost}/xxx"
> 
> 
>     ProxyHTMLURLMap https://${proxyhost}/xxx https://${defaulthost}/aaa
> 
> I have such references to the proxied host in the website pages, links
> suchs as these:
> 
> <script src="https://proxyhost/js/"></script><script
> src="https://proxyhost/js/....s"></script><script
> src="https://proxyhost/js/.....js"></script><script
> src="https://proxyhost/js/..js"></script><script
> src="https://proxyhost/js/l....js"></script><script
> src="https://proxyhost/js/...."></script>
> 
> Any ideas what what would be a good method to handle these exceptions
> outside of the xxx path?

Is it correct that this does not work?

<LocationMatch /../xxxx>

    ProxyPass        "https://aaaa"
    ProxyPassReverse "https://aaaa"
</LocationMatch>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]