Redirect http traffic to https
This commit is contained in:
parent
490d6fba80
commit
6933019eb8
1 changed files with 5 additions and 1 deletions
|
@ -1,6 +1,10 @@
|
|||
http {
|
||||
server {
|
||||
listen 80;
|
||||
listen 80 default_server;
|
||||
server_name _;
|
||||
return 301 https://$host$request_uri;
|
||||
}
|
||||
server {
|
||||
listen 443 ssl;
|
||||
index index.html;
|
||||
include /etc/nginx/mime.types;
|
||||
|
|
Loading…
Reference in a new issue