Can I rewrite https to http?

2023-08-14 Thread baalchina
Hi all, I had an nginx as a reserve proxy, with many web sites behind. And the nginx listen in 443(https) and 80(http). But not all my sites behind support https, so in some sites ,I only listen 80, like this: *server { listen 80; listen [::]:80; server_name nossl.ab

Re: Can I rewrite https to http?

2023-08-14 Thread Jore
Hi there, Hmm. I imagine this will be tricky to not run into infinite loops, if it's the behaviour of the browser to redirect a HTTP page to a HTTPS one. Wouldn't it just be easier to serve your site over HTTPS? Because in order to handle a redirect you'll need a valid TLS certificate anyway.