location is needed for acme.sh nginx mode

This commit is contained in:
neilpang 2017-06-05 22:42:06 +08:00
parent 4e884e2258
commit 45e89592d3

View file

@ -171,7 +171,9 @@ server {
listen [::]:80 {{ $default_server }};
{{ end }}
access_log /var/log/nginx/access.log vhost;
return 301 https://$host$request_uri;
location / {
return 301 https://$host$request_uri;
}
}
{{ end }}