Answers for "how to automatically redirect the request from http to https in ngnix"

3

How to redirect a request from http to https using nginx

server {

    listen 80 default_server;


    server_name _;


    return 301 https://$host$request_uri;

}
Posted by: Guest on June-17-2020

Code answers related to "how to automatically redirect the request from http to https in ngnix"

Browse Popular Code Answers by Language