Https configuration error

I originally wanted to configure https, and there was a problem, but now I can"t access it by http. It automatically becomes https,

every time.

refer to an in-site article when configuring: https://codeshelper.com/a/11.

ip access is normal, but I want to access it as http now.

clipboard.png


here is a rewrite, that redirects it from http to https, and you redirect this one. Then reconfigure it.

server {
        listen       80;
        server_name  www.yourdomain.com;
        rewrite ^ https://$http_host$request_uri? permanent;    -sharp force redirect http to https
    -sharpreturn 301 https://$http_host$request_uri;
}
Menu