nginx listen only on 80 and redirect 443 to 80 code example
Example: How to redirect a request from http to https using nginx
server {
listen 80 default_server;
server_name _;
return 301 https://$host$request_uri;
}
server {
listen 80 default_server;
server_name _;
return 301 https://$host$request_uri;
}