Mastodon: Redirect web-finger
This commit is contained in:
parent
cc3600733a
commit
1c2684b4be
1 changed files with 4 additions and 0 deletions
|
@ -288,6 +288,10 @@ frontend frontend_default
|
||||||
# Redirect www to non-www domains
|
# Redirect www to non-www domains
|
||||||
http-request redirect prefix https://%[hdr(host),regsub(^www\.,,i)] code 301 if { hdr_beg(host) -i www. }
|
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 letsencrypt path_beg /.well-known/acme-challenge/
|
||||||
|
|
||||||
acl laminar hdr(host) -i laminar.benoit.jp.net
|
acl laminar hdr(host) -i laminar.benoit.jp.net
|
||||||
|
|
Loading…
Add table
Reference in a new issue