@problema I think I found a solution. If possible, let me know if this works for you also:
- Modify
/etc/apache2/conf-available/snac2.confto have the following content:
# apache2 configuration example for snac2
# requires modules: proxy, proxy_http
# Main web access point
<Location /social>
ProxyPreserveHost On
ProxyPass http://127.0.0.1:8001/social
</Location>
# WebFinger
<Location /.well-known/webfinger>
ProxyPreserveHost On
ProxyPass http://127.0.0.1:8001/.well-known/webfinger
</Location>
# NodeInfo (optional)
<Location /.well-known/nodeinfo>
ProxyPreserveHost On
ProxyPass http://127.0.0.1:8001/.well-known/nodeinfo
</Location>
# Mastodon API (entry points)
<Location /api/v1/>
ProxyPreserveHost On
ProxyPass http://127.0.0.1:8001/api/v1/
</Location>
<Location /api/v2/>
ProxyPreserveHost On
ProxyPass http://127.0.0.1:8001/api/v2/
</Location>
# Mastodon API (OAuth support)
<Location /oauth>
ProxyPreserveHost On
ProxyPass http://127.0.0.1:8001/oauth
</Location>
# host-meta (optional, needed for some Mastodon API clients)
<Location /.well-known/host-meta>
ProxyPreserveHost On
ProxyPass http://127.0.0.1:8001/.well-known/host-meta
</Location>
(I moved the “ProxyPreserveHost On” line into each Location, and removed it from the top of the file.)
- Run
sudo systemctl reload apache2.
I was able to confirm that this gets Syncthing working again. (I wasn’t able to reproduce the issue with Transmission.)
If this works for you, I can also make the change in the snac2 package.