Nginx Setting

linkaiyi
Follow

Redirect all http to https

server {
    listen 80 default_server;

    server_name _;

    return 301 https://$host$request_uri;
}

or to specific host

server {
    listen 80;

    server_name foo.com;
    return 301 https://foo.com$request_uri;
}
Object has 0 attachments

Was this article helpful?

This article is viewed 22 times!

0 Comments

Leave a Comment

Support