-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Blog in a subpath / webfinger test fails #37
Comments
WebFinger does not support subdirectories, so you have to create a |
And for Nginx ? What rule should I use ? |
This is the .htaccess file that worked for me. "blog" is the name of the subdirectory. You would need to use your own instead:
It would be super if this could be documented somewhere within the plugin, such as the faq |
How can I use that rule with Nginx ? |
I tried with |
I'm wondering : I tried to do that change in nginx config file for my wordpress, not for the root domain. |
exactly! |
He doesn't work, same error, text/html content :( |
Ok I fixed this problem: I was due to Yunohost SSO, which were blocking any public access to this file. Now the redirection is working. Here is the solution:
https://client.webfinger.net shows the json. But I still can't see my blog from Mastodon. |
Can you give me your identifier? |
Search for [removed] |
Two things:
|
Uh… that's not on purpose… No I don't use this plugin.
It works for Nextcloud. |
But what/who is redirecting your profile pages? |
I don't know… |
Ok I found the plugin (NinjaFirewall) that was changing the default behaviour. But now the WebFinger tool gives me a 403 forbidden (as before my rewrite). |
Can you try to refresh the permalinks of your blog? go to the permalinks page and simply press the save button... you do not have to change anything... |
Done, same result. |
So here is the current status: the redirect works on the browser. With |
Ok, in fact a wordpress upgrade changed my nginx config (I use it with Yunohost). Problem solved, thanks a lot 🎉 |
Hi, I appreciate that you don't want to keep issues open when the solution is known, but has this actually been documented any place else but in these issues? I'd do a pull request, but it doesn't seem like the README is the best location and other help files are not immediately obvious. |
Well I didn't want to spam again @pfefferle with my problems ^^ I don't know where to put this, I'm actually writing a blog post (in French) to talk about this plugin, but my problem was kind of specific and I don't know if it's a good idea to explain the solutions in a place where it's hard to find, while here in the issues it's kind of easier to found it. |
If you can also write an English version I can add it to the faq section of the readme... |
That's an idea… I will see if I have some time to do it, then I'll give you the link :) |
After sometimes, I discovered that my nginx config changed, and I'm not sure I kept the previous one. I tried to reconfigure it, with
But it doesn't work from Mastodon and https://webfinger.net/lookup/ gives me this:
A
And
I'm lost, I don't remember which URL I should test, and how to configure Nginx… |
The URL you have to check is |
This error is correct! It says, that your rewrite seems to work, but you pass no resource param. |
Here a working example: |
https://webfinger.net/lookup/?resource=https%3A%2F%2Fnotiz.blog%2F.well-known%2Fwebfinger%3Fresource%3Dacct%3Apfefferle%40notiz.blog 404 not found 😅 edit: curl gives the right result |
For my domain, I have a 400 bad request and |
If I try with an article from my wordpress (the last one, that doesn't appear on mastodon): |
Ok now instead of using |
Can you post some real URLs, so I can check them? |
Is it the URL from your GitHub profile? If so, it does return the JSON response but without content. Request:
Response:
Do you use a pagebuilder or a multi language plugin? |
Thank you. |
Hmmm... I just tested it with my site and it seems to work properly:
Also when I search for the URL on mastodon. |
It works for me too from Mastodon. EditorsKit and Stackable, that I used to add more blocks, are not in the pagebuilder category, right ? |
Ooooook that's super weird: I tried to change Activity-Object-Type (I changed a random parameter), saved it, then disabled an enabled again the extension, and while curl still fails, I can see it with the URL on Mastodon… Thanks a lot for your help :) |
😊 |
My wordpress is installed in domain.tld/subpath.
When I try to test the webfinger part, it fails. With both [email protected] ("invalid content-type: text/html") and [email protected]/subdomain (<- this one gives me an encoding error "invalid URL escape "%2F"").
Is this plugin compatible with subpath ?
The text was updated successfully, but these errors were encountered: