You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

26 lines
623 B

<VirtualHost *:8000>
DocumentRoot /app/code
ErrorLog "/dev/stderr"
CustomLog "/dev/stdout" combined
# 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/
<Location /healthcheck>
Order allow,deny
Allow from all
Satisfy Any
ErrorDocument 200 "ok"
RewriteEngine On
RewriteRule "/healthcheck" - [R=200]
</Location>
</VirtualHost>