-
I have installed an instance of Misskey and almost everything works well except emojis from remote instances are not displayed. Here an exemple of a note cached on my instance that shows the issue and here the same note cached on an other instance with emojies displayed correctly. I installed Misskey in a docker container and use apache as a reverse proxy (not nginx). I tried doing some troubleshooting and realised that the non-working images use HTML URL encoding schemes. All other URLs in the source code of the page are displayed "normally". So I decided to change the image source URL using the Chrome Inspector. I replaced the "%2F" with "/" and the "%3A" with ":". And the emoji showed up correctly on the page ! URL before: https://i.imgur.com/5b8XoCZh.png URL after: https://i.imgur.com/aaykssch.png Does any one have an idea what could cause this and how to fix it? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Found the issue :) It was indeed related to the URL encoding. The problem was that I googled for a misskey issue and therefore didn't find an answer, but there are answers if you search for apache encoding issues :) here the pages which helped me resolve it: I hope this might help some other weirdos running docker containers with apache as reverse proxy ;) |
Beta Was this translation helpful? Give feedback.
Found the issue :) It was indeed related to the URL encoding.
I added
AllowEncodedSlashes On
to my Apache Virtualhost. It also works withAllowEncodedSlashes NoDecode
and might even be a little faster. The default if not defined isOff
.The problem was that I googled for a misskey issue and therefore didn't find an answer, but there are answers if you search for apache encoding issues :) here the pages which helped me resolve it:
https://serverfault.com/questions/715242/encode-url-wihthin-url-apache-mod-proxy-proxypass
https://httpd.apache.org/docs/2.4/mod/core.html#allowencodedslashes
I hope this might help some other weirdos running docker containers with apache as reverse proxy ;)