diff --git a/Proxy-examples.md b/Proxy-examples.md index dbc71d4..5a22ee5 100644 --- a/Proxy-examples.md +++ b/Proxy-examples.md @@ -355,6 +355,12 @@ Remember to enable `mod_proxy_wstunnel` and `mod_proxy_http`, for example with:
Apache in a sub-location (by ss89)
+Start container with +```ini +; Add the sub-path! Else this will not work! +DOMAIN=https://$hostname.$domainname/$sublocation/ +``` + Ensure you have the websocket proxy module loaded somewhere in your apache config. It can look something like: @@ -377,11 +383,11 @@ On some OS's you can use a2enmod, for example with: `a2enmod proxy_wstunnel` and ErrorLog \${APACHE_LOG_DIR}/error.log CustomLog \${APACHE_LOG_DIR}/access.log combined - #adjust here if necessary + #adjust here if necessary RewriteEngine On RewriteCond %{HTTP:Upgrade} =websocket [NC] RewriteRule /notifications/hub(.*) ws://:3012/$1 [P,L] - ProxyPass http://:80/ + ProxyPass http://:80/$sublocation/ ProxyPreserveHost On RequestHeader set X-Real-IP %{REMOTE_ADDR}s