Re: How to properly redirect http to https?

Fabian Keil <[email protected]>
Newsgroups gmane.comp.web.privoxy.user
Message-ID <[email protected]>
mingheng wang <[email protected]> wrote:

> 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.

Please provide a log excerpt with the debug settings documented at:
https://www.privoxy.org/user-manual/contact.html

I don't completely understand your setup but having Privoxy listening
on 443 seems like a strange decision as this port is mainly used
for encrypted requests while Privoxy expects unencrypted requests.

Fabian

_______________________________________________
Privoxy-users mailing list
[email protected]
https://lists.privoxy.org/mailman/listinfo/privoxy-users
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEETzbBfzgWkTZUoehQaRgikYuiNxwFAlq4yOIACgkQaRgikYui
Nxyc3Q//Q3aBVMMGIqdLJPjLDS/woX/jU117HtnBerCTn/STHn0MOikNDu49PUAQ
0+nIERWSuUTww1c6ZJjvkwyLL6pOoqhkkrlGgDGLueqgwvnop5+kTi8jOtVwtJKl
NCGt2layrBpdwPZy6UxgJXSYC8OzCe4k4Sl0i1KToiqp0kJ0CKLyHNq5irfHW2KF
26a1MJu1CXkgNGYPpD7RjQ7qvfZJy1wk2GfcjWWe0uVh5kLK+/3t5ANPFIFgDM0b
hGtpp5L658uCgSWo6PndEwkqqJaxNzm8bx3O8qQsOhLFBqQEVFbCmOPck3Q4atUO
Yn3dOyOj0x6Sv9ln5Sgt7C5wKoFDDYQgLHFcnnz40Kk152/9RChGU5bU2jUiIz0l
Asfj+vYSy/0TGcOJzGdkjc3mUkxR+zdJlOZNR4HC+J51dLoG3btiKisaY6drE5gU
PnfwwenXjVU3RwMvyK/mJQS0fH0IIS8jAfpGOg+trxkmzjSBCqgCr7ZF1beHKMh6
UDG8oAmQBpBsZiceqhM+qRoa2DrXafdAox3zz4MR0zbF6+mNmsM8593sXCybI9Z9
X9K6U+b3JjNZHUao4IOLEF6EyM+RFuLuV8wVI8xIPIkHWW0bKT0xMPn6S3s3FNix
4EY+knPC/wn3MsUGBWxi3pDqTiVVJP73GbkeQ9n1X+pWaHDMiXs=
=T4cc
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.