[Privoxy-users] How to properly redirect http to https?

mingheng wang ifoolb at gmail.com
Sat Mar 24 08:09:47 UTC 2018


Hi everyone,I wish to use my server as both a normal web server and a proxy server, so I configure privoxy to listen on both 80 and 443, squid on 127.0.01:3128, apache on 127.0.0.1:8080 and 127.0.0.1:8443 respectively. I let apache to handle requests to my own domain and squid for the rest by using privoxy's forward directives, and I also want to redirect all http to https, using this simple rule in user.action: 
{+redirect{s@^http://@https://@}} .example.com:80
However I always get infinite redirects in the web browser. By setting debug level to 128, I see repeated lines like this:
Redirect: pcrs command "s@^http://@https://@" changed "http://example.com/" to "https://example.com/" (1 hit). 
I don't understand why this doesn't work. Can someone tell me the right way to do this? Thanks.



More information about the Privoxy-users mailing list