nginx: only handle acme-challenge well-known directory in default site
Mainly so that other directories can be reverse-proxied.
This commit is contained in:
parent
b7fd838ca9
commit
2d776d3246
|
@ -2,8 +2,8 @@
|
|||
server {
|
||||
listen 80 default_server;
|
||||
listen [::]:80 default_server;
|
||||
location /.well-known/ {
|
||||
alias /srv/http/.well-known/;
|
||||
location /.well-known/acme-challenge/ {
|
||||
alias /srv/http/.well-known/acme-challenge/;
|
||||
}
|
||||
location / {
|
||||
return 301 https://$host$request_uri;
|
||||
|
|
Loading…
Reference in a new issue