HEY! I just found the fix for the webfinger "403 forbidden” problem I have been having to get my wordpress blog working fully with ActivityPub @pfefferleMatthias Pfefferle!

Looks like for nginx based servers if you are rolling your own or you have a strict web host you need to create a location statement in your nginx config options

The code to add to your options is:

location ^~ /.well-known/webfinger {
auth_basic off;
allow all;
default_type text/plain;
try_files $uri $uri/ /index.php?$args;
break;
}

From this wordpress support question:

wordpress.org/support/topic/i-

After adding this, the test at webfinger.net/lookup outputs a proper response and Wordpress clears the 'webfinger' error in SiteHealth.

Yay!

A screenshot of the response from webfinger.net when I try my website shows a 403 Forbidden error in the Request LogA screenshot after implementing the code in the nginx file shows a successful request and JSON Resource Descriptor lookup.
0

If you have a fediverse account, you can quote this note from your own instance. Search https://mstdn.chrisalemany.ca/users/chris/statuses/114512580626789986 on your instance and quote it. (Note that quoting is not supported in Mastodon.)