From: Pandark Date: Sun, 28 Jan 2018 01:15:33 +0000 (+0100) Subject: Add ^~ to nginx location block X-Git-Tag: v0.6.0~37 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=471899b4d8d1887565c47695397bf92267db69ea;p=thirdparty%2Fdehydrated.git Add ^~ to nginx location block To make sure it is not overridden. > http://nginx.org/en/docs/http/ngx_http_core_module.html#location : > If the longest matching prefix location has the “^~” modifier then regular expressions are not checked. --- diff --git a/docs/wellknown.md b/docs/wellknown.md index 06b128d..f5a9305 100644 --- a/docs/wellknown.md +++ b/docs/wellknown.md @@ -24,7 +24,7 @@ With Nginx you'll need to add this to any of your `server`/VHost config blocks: ```nginx server { [...] - location /.well-known/acme-challenge { + location ^~ /.well-known/acme-challenge { alias /var/www/dehydrated; } [...]