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

View File

@ -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;