apache.conf 621 Bytes
Newer Older
Felix Bartels's avatar
Felix Bartels committed
1 2 3 4 5 6
<VirtualHost *:80>
    DocumentRoot /app/code

    ErrorLog "/dev/stderr"
    CustomLog "/dev/stdout" combined

7 8 9 10 11 12 13 14
    # rewrite websocket connections to its own endpoint
    RewriteEngine On
    RewriteCond %{HTTP:Upgrade} =websocket [NC]
    RewriteRule /(.*)           ws://127.0.0.1:3012/$1 [P,L]

    ProxyPreserveHost On
    ProxyErrorOverride Off
    ProxyPass / http://127.0.0.1:3000/
Felix Bartels's avatar
Felix Bartels committed
15 16 17 18 19 20 21 22 23 24 25 26

    <Location /healthcheck>
        Order allow,deny
        Allow from all
        Satisfy Any

        ErrorDocument 200 "ok"
        RewriteEngine On
        RewriteRule "/healthcheck" - [R=200]
    </Location>

</VirtualHost>