Skip to content

Commit a9b9c74

Browse files
lounagenJrCs
authored andcommitted
Set /.well-known/acme-challenge nginx location path as prefix string (#192)
In nginx.tmpl, vhosts.d are included before the 'location /' target, and last basic location wins. If our /.well-known location is defined as a prefix string (or as a regex), it takes priority over basic locations Details on http://nginx.org/en/docs/http/ngx_http_core_module.html#location
1 parent 081a4e8 commit a9b9c74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/nginx_location.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
location /.well-known/acme-challenge/ {
1+
location ^~ /.well-known/acme-challenge/ {
22
allow all;
33
root /usr/share/nginx/html;
44
try_files $uri =404;

0 commit comments

Comments
 (0)