Squid reverse proxy - redirect subdirectories
heychris last edited by
Thanks for all the hard work. I'm a big fan of pfsense.
Despite many hours of searching I'm having a problem with squid reverse proxy.
I am trying to redirect a url mydomain.com/mydirectory to an internal server 192.168.2.11/mydirectory.
The problem is there are icons which exist in 192.168.2.11/icons
I don't fully understand the syntax of the regex.
My problem - any subdirectory of mydirectory such as www.mydomain.com/icons/icon.gif gets translated to 192.168.2.11/mydirectory/icons/icon.gif
So I removed the mapping and tried a redirect.
blocked domain (unsure why it's called that) www.mydomain.com
regex - I tried both ^/$ and ^/mydirectory/$
redirect - 192.168.2.11/mydirectory
This has the same result.. www.mydomain.com/icons/icon.gif gets translated to 192.168.2.11/mydirectory/icons/icon.gif
any help would be appreciated.