Add 301 redirect from port 80 to port 443

This commit is contained in:
Jack Minardi 2017-07-19 14:42:23 -04:00 committed by GitHub
parent 21200a42a4
commit 6a7058b30d

View File

@ -1,8 +1,9 @@
# server { server {
# listen 80; listen 80 default_server;
# server_name mattermost.example.com; listen [::]:80 default_server;
# return 301 https://$server_name$request_uri; server_name _;
# } return 301 https://$host$request_uri;
}
map $http_x_forwarded_proto $proxy_x_forwarded_proto { map $http_x_forwarded_proto $proxy_x_forwarded_proto {
default $http_x_forwarded_proto; default $http_x_forwarded_proto;