nginx: fix letsencrypt redirect

This commit is contained in:
Gabriel Ebner 2015-12-05 13:59:38 +01:00
parent e73fc0f951
commit 46ab866076
2 changed files with 6 additions and 2 deletions

@ -83,7 +83,9 @@ in
alias /etc/sslcerts/acmeroot/.well-known/acme-challenge;
}
rewrite ^(.*) https://$host$1 permanent;
location / {
rewrite ^(.*) https://$host$1 permanent;
}
}
server {

@ -26,7 +26,9 @@
alias /etc/sslcerts/acmeroot/.well-known/acme-challenge;
}
rewrite ^(.*) https://gebner.org$1 permanent;
location / {
rewrite ^(.*) https://gebner.org$1 permanent;
}
}
'';
};