August 14, 2023 09:58AM
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; location / {
proxy_pass_header Server; proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Scheme
$scheme; proxy_pass http://nossl http://nossl/; } }*

And I got a problem here, when I using, it works fine.
But some browser( like edge in a newly installed Windows 11), it will auto
redirect to the https site(, then we got a default
site of my nginx instead of

So, can I redirect the request, when user open, the
will be redirect to


nginx mailing list
Subject Author Posted

Can I rewrite https to http?

baalchina August 14, 2023 09:58AM

Re: Can I rewrite https to http?

Jore August 15, 2023 01:20AM

Re: Can I rewrite https to http?

Ralph Seichter via nginx August 15, 2023 09:54AM

Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 219
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready