From 5f051e31040da6baf074ed631ef3c2a67c230e1c Mon Sep 17 00:00:00 2001 From: Lenart Kos <39205323+Lenart12@users.noreply.github.com> Date: Wed, 24 Jan 2024 16:11:36 +0100 Subject: [PATCH] docs: add reverse proxy configuration for Apache (#6625) --- docs/docs/administration/reverse-proxy.md | 26 +++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/docs/docs/administration/reverse-proxy.md b/docs/docs/administration/reverse-proxy.md index 367c5115a..082d5396e 100644 --- a/docs/docs/administration/reverse-proxy.md +++ b/docs/docs/administration/reverse-proxy.md @@ -38,3 +38,29 @@ immich.example.org { reverse_proxy http://:2283 } ``` + +### Apache example config + +Below is an example config for Apache2 site configuration. + +``` + + ServerName + + ProxyRequests off + ProxyVia on + + RewriteEngine On + RewriteCond %{REQUEST_URI} ^/api/socket.io [NC] + RewriteCond %{QUERY_STRING} transport=websocket [NC] + RewriteRule /(.*) ws://localhost:2283/$1 [P,L] + + ProxyPass /api/socket.io ws://localhost:2283/api/socket.io + ProxyPassReverse /api/socket.io ws://localhost:2283/api/socket.io + + + ProxyPass http://localhost:2283/ + ProxyPassReverse http://localhost:2283/ + + +```