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,

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/
LoadModule proxy_http_module modules/
LoadModule proxy_wstunnel_module modules/

mod_rewrite is used to make the actual proxying:

<VirtualHost *:443>
    ProxyTimeout 300
    ProxyPreserveHost On

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

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

    RewriteRule ^(.*)$$1 [P]

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