Apache reverse proxy?
Hi there! I'm trying to configure my Apache2 server as a reverse proxy for immich. Both Apache and the Immich-docker are installed on the same Ubuntu server. My configuration is very simple (probably too simple?)
# Reverse proxy for Immich
ProxyPreserveHost On
ProxyRequests Off
ProxyVia On
ProxyPass /immich http://localhost:2283 connectiontimeout=6h timeout=6h
This seems to work initially; entering www.mydomain.com/immich correctly shows the launch page for Immich ("Welcome to IMMICH Web, Get Started"), but clicking the "Get Started" button redirects to www.mydomain.com/auth/login instead of www.mydomain.com/immich/auth/login.
I tried setting IMMICH_WEB_URL in the .env file:
IMMICH_WEB_URL=https://www.mydomain.com/immich
But that didn't seem to work (now I get 502 Bad Gateway when opening the web page), with the following in the Apache logs:
[Tue Jan 17 18:49:45.986847 2023] [core:error] [pid 632558] [client 196.206.225.246:36400] AH00124: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.
Any suggestions?
2 Replies