How do I redirect HTTPS to HTTP on NGINX?

前端 未结 6 1230
孤城傲影
孤城傲影 2020-12-23 13:33

Is there a way to redirect HTTPS requests to HTTP by adding a rule in the domain\'s vhost file?

6条回答
  •  遥遥无期
    2020-12-23 14:13

    The only simple rule is already explained on the post above me:

    server {
        listen ip:443;
        server_name www.example.com;
        rewrite ^(.*) http://$host$1 permanent;
    }
    

提交回复
热议问题