diff --git a/03frontends.cfg b/03frontends.cfg index d71e296..7662886 100644 --- a/03frontends.cfg +++ b/03frontends.cfg @@ -288,6 +288,10 @@ frontend frontend_default # Redirect www to non-www domains http-request redirect prefix https://%[hdr(host),regsub(^www\.,,i)] code 301 if { hdr_beg(host) -i www. } + # Redirect /.well-known/webfinger to mastodon.benoit.jp.net + acl webfinger_request path_beg /.well-known/webfinger + http-request redirect location https://mastodon.benoit.jp.net%[capture.req.uri] if webfinger_request + acl letsencrypt path_beg /.well-known/acme-challenge/ acl laminar hdr(host) -i laminar.benoit.jp.net