RedirectMatch not workding with Forward Chaining Proxy in Apache


RedirectMatch not workding with Forward Chaining Proxy in Apache



I am trying to configure apache server as a forward proxy chaining to another (internet)proxy while at the same time including RedirectMatch directives to redirect certain urls to the local host instead of chaining to the remote proxy.



diagram
http://www.plantuml.com/plantuml/png/TP7DIiH03CVlUOhGUt6zBQMKLK4GL9O57s1s6cbXd9GqQzUtDsLBwTHwcKFoc_y7EVJgH2zV0SvynUpub45dWzQtdOkAZy93JvBCieVE-OQA_Mw_ox0iFra69pLsmjUVgjfcxqToeBE9VPCOHR56iqpevvlISHHA5YzHII8fm1G8ysgLey2B1711yKHrA-JrpQblvWzbdl_v8HE9oXZOkz1mhvRrBjBmSNfTcYLD2bm19fuGGA4dVETRXDGshvAUK_3bo92vyTRQtERzIdnSBTd_wyDu0JZOOyV_1G00



The redirect without the forward proxy chaining directives works.
The forward proxy chaining works with or without the redirect directive but if I have both the redirect and the chaining configured any url that matches the redirect returns a 404



Here is a copy of the conf


ServerRoot "c:/bin/Apache24"
Listen 81
...
Listen 8080
<VirtualHost *:8080>
RedirectMatch ".*testing.*" "http://localhost:81/test.png"
ProxyRequests On
ProxyRemote * http://theInternetProxy:8080
</VirtualHost>



Can anyone assist?





see if https://serverfault.com/questions/605931/can-you-use-redirect-and-proxypass-at-the-same-time helps
– Andra
Jul 2 at 11:43









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

api-platform.com Unable to generate an IRI for the item of type

How to set up datasource with Spring for HikariCP?

Display dokan vendor name on Woocommerce single product pages