Zum Inhalt der Seite gehen


Since I have a really bad hand with timing my posts, so that the least amount people possible see them, I have to try again ;-)

Anyone out there who knows about hosting Fediverse Applications behind an Apache Reverse Proxy?

To be more specific - I have been trying for days to get Epicyon running on my server. Installation was easy and it is running, just not completely. I cannot follow people or accept follows from others and proxying is the most likely culprit (I'm seeing 400 and 401 errors in Epicyon's logs)

The Installation Manual describes how to set up a nginx Reverse Proxy but I already have Apache and cannot change that. I do run other services using it as a proxy though and these all work as expected.

I'm out of ideas and would appreciate any help translating from nginx config to Apache. Boosts Welcome!

#fedihelp #hosting #apache #epicyon #reverseproxy #selfhosting

teilten dies erneut

Als Antwort auf AndiS 🌞🍷🇪🇺

I switched to nginx a couple of years ago, if I rember correctly: For apache, you need mod_proxy mod_http_proxy mod_proxy_balancer and a balancing method like lbmethod_byrequests. Balancer does balance 100% to 1 single host or backend.

IIRC in apache2 you need to specify the location and then ProxyPass, ProxyPassReverse etc and RequestHeaders X-Forwarded-For etc.

httpd.apache.org/docs/2.4/mod/…

httpd.apache.org/docs/2.4/mod/…

Als Antwort auf KonsolentieR

Yes, I have done all this - except I never touched a proxy balancer which seems OK since everything is running on the same host (proxying is just for TLS Termination and to let the application only talk to localhost).

I have read the docs up and down for a week's worth of evenings (Apache and nginx!). There has to be something very specific in the linked nginx config that is not replicated in "normal" apache reverse proxy setups.

Still, thanks!

@KonsolentieR

Als Antwort auf AndiS 🌞🍷🇪🇺

Any indication in apache2 error logs or something in browser dev tools?

At first look on the nginx example, I see nothing unusual...

Als Antwort auf AndiS 🌞🍷🇪🇺

Trying to follow someone on another server leads to a "400" (Friendica) or "401" Error (Mastodon). This is what I see in my local Apache logs.

I'm also looking through the server logs on the receiving side (my own Friendica instance) where I have find a "verification failed" - which would explain why the receiver replies with a 400/401 Error.

I can see nothing obviously wrong with the request data and suspect there has to be a minor detail wrong with the http headers on requests that originate and go out from behind the reverse proxy.

Incoming request work as expected.

Als Antwort auf AndiS 🌞🍷🇪🇺

Still not a bit closer to a solution, but I now learned how to use debugpy and VSCodium for debugging python stuff running live on the server. Pretty awesome!

@KonsolentieR

#python #dubugpy #vscodium #selfhosting #debugging

Tech Cyborg hat dies geteilt.