31 lines
796 B
Text
31 lines
796 B
Text
<VirtualHost *:80>
|
|
ServerAdmin USER@EMAIL.ca
|
|
ServerName DOMAIN.ca
|
|
|
|
ProxyRequests Off
|
|
ProxyPreserveHost On
|
|
|
|
<Proxy *>
|
|
Order deny,allow
|
|
Allow from all
|
|
</Proxy>
|
|
|
|
# Specification for Odoo 16 and more
|
|
<Location /websocket>
|
|
ProxyPass ws://127.0.0.1:8072/websocket/
|
|
ProxyPassReverse ws://127.0.0.1:8072/websocket/
|
|
</Location>
|
|
|
|
<Location />
|
|
ProxyPass http://127.0.0.1:8069/
|
|
ProxyPassReverse http://127.0.0.1:8069/
|
|
</Location>
|
|
|
|
RewriteEngine on
|
|
RewriteCond %{HTTP:Upgrade} =websocket [NC]
|
|
RewriteRule /(.*) ws://127.0.0.1:8072/$1 [P,L]
|
|
RewriteCond %{HTTP:Upgrade} !=websocket [NC]
|
|
RewriteRule /(.*) http://127.0.0.1:8069/$1 [P,L]
|
|
|
|
RequestHeader set "X-Forwarded-Proto" "https"
|
|
</VirtualHost>
|