diff options
author | 2020-11-02 20:30:41 +0000 | |
---|---|---|
committer | 2020-11-02 20:30:41 +0000 | |
commit | 805cf49d1e8e4208fb20203a5ec43df94f4ba7b1 (patch) | |
tree | b48ea21ad9dd0fe3bb3cc1e70f9566c5e07b4f12 | |
parent | sync (diff) | |
download | wireguard-openbsd-805cf49d1e8e4208fb20203a5ec43df94f4ba7b1.tar.xz wireguard-openbsd-805cf49d1e8e4208fb20203a5ec43df94f4ba7b1.zip |
acme response challenge location to issue better error code
Notified to me by jmc@
Diff by Matthias Pressfreund <mpfr @ fn de>, thanks
-rw-r--r-- | etc/examples/httpd.conf | 6 | ||||
-rw-r--r-- | usr.sbin/acme-client/acme-client.1 | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/etc/examples/httpd.conf b/etc/examples/httpd.conf index fee8d607e90..1abd3b68faa 100644 --- a/etc/examples/httpd.conf +++ b/etc/examples/httpd.conf @@ -1,8 +1,8 @@ -# $OpenBSD: httpd.conf,v 1.20 2018/06/13 15:08:24 reyk Exp $ +# $OpenBSD: httpd.conf,v 1.21 2020/11/02 20:30:41 denis Exp $ server "example.com" { listen on * port 80 - location "/.well-known/acme-challenge/*" { + location found "/.well-known/acme-challenge/*" { root "/acme" request strip 2 } @@ -20,7 +20,7 @@ server "example.com" { location "/pub/*" { directory auto index } - location "/.well-known/acme-challenge/*" { + location found "/.well-known/acme-challenge/*" { root "/acme" request strip 2 } diff --git a/usr.sbin/acme-client/acme-client.1 b/usr.sbin/acme-client/acme-client.1 index 100ffc173e4..0e132625cb4 100644 --- a/usr.sbin/acme-client/acme-client.1 +++ b/usr.sbin/acme-client/acme-client.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: acme-client.1,v 1.34 2020/05/10 12:06:18 benno Exp $ +.\" $OpenBSD: acme-client.1,v 1.35 2020/11/02 20:30:41 denis Exp $ .\" .\" Copyright (c) 2016 Kristaps Dzonsons <kristaps@bsd.lv> .\" @@ -14,7 +14,7 @@ .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: May 10 2020 $ +.Dd $Mdocdate: November 2 2020 $ .Dt ACME-CLIENT 1 .Os .Sh NAME @@ -58,7 +58,7 @@ can be served by with this location block, which will properly map response challenges: .Bd -literal -offset indent -location "/.well-known/acme-challenge/*" { +location found "/.well-known/acme-challenge/*" { root "/acme" request strip 2 } |