Anyone with openhab-cloud behind apache2 reverse proxy?

Hi community,

i want to run openhab-cloud on my existing webserver running apache 2.4. However I only see a heavy nginx config for openhab-cloud.

Does anyone run openhab-cloud behind an apache2.4 and is willing to share their config with me/the community?

Thank you in advance and best regards,
Claudio

hi claudio,
i have just revisited my apache configuration to fix problems with openhab 2.5. i have the following modules enabled:

LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule proxy_wstunnel_module modules/mod_proxy_wstunnel.so

mod_rewrite is used to make the actual proxying:

<VirtualHost *:443>
    ServerName hab.example.com
    ProxyTimeout 300
    ProxyPreserveHost On

    RewriteEngine On
    RewriteCond %{QUERY_STRING} transport=polling
    RewriteRule ^(.*)$ http://127.0.0.1:3003$1 [P,L]

    RewriteCond %{REQUEST_URI} ^/socket.io
    RewriteCond %{QUERY_STRING} transport=websocket
    RewriteRule ^(.*)$ ws://127.0.0.1:3003$1 [P,L]

    RewriteRule ^(.*)$ http://127.0.0.1:3003$1 [P]
</VirtualHost>

not sure this is the soundest way to do this, but it works