WebFinger lookup

WebFinger (RFC7033) allows to resolve names like myname@example.org to the according machine readable participant profile document or human readable page.

#Seppo! sets this up automatically for Apache webservers and one participant per domain.

Advanced setup

If you want multiple participants on one domain (with a #Seppo! per participant),

  1. the participant names myname@example.org must be distinct,
  2. the <webroot>/.well-known/webfinger/.htaccess must dispatch accordingly.

This involves manual action, because #Seppo! never writes files outside it's directory (except updating the symlink below).

To achieve this, replace the symlink <webroot>/.well-known/webfinger/.htaccess with the content of all the .well-known/webfinger/.htaccess files of each #Seppo! installation, e.g.:

$ cd <webroot>/.well-known/webfinger/
$ mv .htaccess .htaccess.bak
$ cat ../../*/.well-known/webfinger/.htaccess > .htaccess

The resulting <webroot>/.well-known/webfinger/.htaccess may look something like this:

# https://Seppo.mro.name/S1002
RewriteEngine On

RewriteCond %{QUERY_STRING} ^resource=acct:alice@example\.com$
RewriteRule ^$ https://example.org/alice/.well-known/webfinger/index.json [qsdiscard,last,redirect=seeother]

RewriteCond %{QUERY_STRING} ^resource=acct:bob@example\.com$
RewriteRule ^$ https://example.org/bob/.well-known/webfinger/index.json [qsdiscard,last,redirect=seeother]

For other webservers set up the redirects or rewrites accordingly.