catch_all redirects to https
This commit is contained in:
parent
8cef1d5c17
commit
406a140843
|
@ -103,15 +103,10 @@ http {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#Default Catch-all redirects to https
|
||||||
#Default Catch-all serving
|
|
||||||
server {
|
server {
|
||||||
listen 80 default_server;
|
listen 80 default_server;
|
||||||
server_name _;
|
server_name _;
|
||||||
root /var/www/default;
|
return 301 https://$host$request_uri;
|
||||||
|
|
||||||
location /{
|
|
||||||
try_files $uri /$uri /index.html;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue