add ssl redirect for the default page
This commit is contained in:
parent
9a7a550c9f
commit
232964e6d7
@ -3,6 +3,13 @@ server {
|
|||||||
listen 80;
|
listen 80;
|
||||||
server_name localhost;
|
server_name localhost;
|
||||||
|
|
||||||
|
return 301 https://$server_name$request_uri;
|
||||||
|
}
|
||||||
|
|
||||||
|
server {
|
||||||
|
listen 443 ssl;
|
||||||
|
server_name localhost;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
root /var/www/vhosts/default;
|
root /var/www/vhosts/default;
|
||||||
index index.html index.htm;
|
index index.html index.htm;
|
||||||
|
Loading…
Reference in New Issue
Block a user