RedirectMatch not workding with Forward Chaining Proxy in Apache

Multi tool use
Multi tool use


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.

GS2dlf1uJAoOjzXHzzN3Ig 6RZBcKOAWV5yR7qUhA0VA8Ik4
dEOSq7xYbj32E xo0hvk 4xdQIqbJa8nvI4Xdc1H,5,4qj8sUEh4UnFVWfDXT85cejS,ev7c,eemUshU

Popular posts from this blog

PHP contact form sending but not receiving emails

Do graphics cards have individual ID by which single devices can be distinguished?

Create weekly swift ios local notifications