Closed djschilling closed 3 years ago
I'm pretty sure it does send a Host header. perhaps you could capture the request you receive on your server to see what's wrong.
looks like it's sending a Host header of chat.church.tools:443
. That's as specced; see https://matrix.org/docs/spec/server_server/latest#resolving-server-names.
I'm going to go ahead and close this because I don't think it's a problem with the federationtester. If you can give more details about exactly what you think the federation tester is doing wrong (having first checked against the spec), we can reopen it.
@richvdh thanks for the clarification. i actually read the spec, but oversaw that the port is also sent as host header. i fixed it on my server and its now valid.
Describe the bug The federation tester does not use the host header to check matrix server. That's my guess.
To Reproduce https://federationtester.matrix.org/api/report?server_name=chat.church.tools
the following error occurs:
msg=Failed to GET JSON (hostname \"chat.church.tools:443\" path \"/_matrix/federation/v1/version\"): <html><body><h1>503 Service Unavailable</h1>\nNo server is available to handle this request.\n</body></html>\n code=503 wrapped=
But i can access my server through curl with the ip by passing the correct host header:
i have to use the insecure flag because curl does not respect the host header when checking the ssl certificate.
Expected behavior the tester should give a positive result
Screenshots