Merge pull request #157 from jminardi/patch-1
Add 301 redirect from port 80 to port 443
This commit is contained in:
		
						commit
						6e2600cad1
					
				| @ -1,8 +1,9 @@ | ||||
| # server { | ||||
| #     listen         80; | ||||
| #     server_name    mattermost.example.com; | ||||
| #     return         301 https://$server_name$request_uri; | ||||
| # } | ||||
| server { | ||||
| 	listen 80 default_server; | ||||
| 	listen [::]:80 default_server; | ||||
| 	server_name _; | ||||
| 	return 301 https://$host$request_uri; | ||||
| } | ||||
| 
 | ||||
| map $http_x_forwarded_proto $proxy_x_forwarded_proto { | ||||
|   default $http_x_forwarded_proto; | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Kyâne Pichou
						Kyâne Pichou