add ssl redirect for the default page

This commit is contained in:
Robert Kaussow 2017-07-15 22:45:48 +02:00
parent 9a7a550c9f
commit 232964e6d7
1 changed files with 7 additions and 0 deletions

View File

@ -3,6 +3,13 @@ server {
listen 80;
server_name localhost;
return 301 https://$server_name$request_uri;
}
server {
listen 443 ssl;
server_name localhost;
location / {
root /var/www/vhosts/default;
index index.html index.htm;