X-Git-Url: https://git.ladys.computer/x_status_git/blobdiff_plain/e2db8c2a3219ec8e97cef6529fe4be9d07f8b392..27d67f5fdc5741c6894f9ca1624c417956839190:/Caddyfile?ds=inline diff --git a/Caddyfile b/Caddyfile index 5b8aca5..a430aae 100644 --- a/Caddyfile +++ b/Caddyfile @@ -29,6 +29,20 @@ status.site.example { header Link ;rel=alternate;type="application/atom+xml" } + @iri { + path_regexp matcher ^/(?P[^/:]+:[^/]+)/?$ + } + + handle @iri { + handle @bare { + rewrite * /.lookup.xhtml + } + + handle @slash { + redir * /{re.matcher.iri} + } + } + handle /about { rewrite * /.about.html header Link ;rel=meta;type="application/ld+json"