How to redirect a request from http to https using nginx
server {
listen 80 default_server;
server_name _;
return 301 https://$host$request_uri;
}
Are there any code examples left?
New code examples in category Other
server {
listen 80 default_server;
server_name _;
return 301 https://$host$request_uri;
}