1
0
mirror of https://gitlab.com/bramw/baserow.git synced 2024-11-23 08:07:35 +00:00
bramw_baserow/deploy/apache/recommended/sub-domain.conf
2022-07-05 13:45:31 +00:00

21 lines
544 B
Plaintext

<VirtualHost *:80>
ProxyPreserveHost On
# Replace with your sub domain
ServerName example.localhost
# Properly upgrade ws connections made by Baserow to the /ws path for realtime collab.
RewriteEngine on
RewriteCond ${HTTP:Upgrade} websocket [NC]
RewriteCond ${HTTP:Connection} upgrade [NC]
RewriteRule .* "ws://baserow:80/$1" [P,L,END]
ProxyPass /ws ws://baserow:80/ws
ProxyPassReverse /ws ws://baserow:80/ws
# Send everything else to Baserow as normal.
ProxyPass / http://baserow:80/
ProxyPassReverse / http://baserow:80/
</VirtualHost>