ServerAdmin webmaster@example.com ServerName odoo.example.com SSLEngine on SSLProtocol all -SSLv2 -SSLv3 SSLCipherSuite ALL:!ADH:!EXPORT:!SSLv2:RC4+RSA:+HIGH:+MEDIUM SSLCertificateFile /etc/ssl/wildcard.example.com/public.crt SSLCertificateKeyFile /etc/ssl/wildcard.example.com/private.pem RequestHeader set X-Forwarded-Proto "https" RewriteEngine On # Permanent redirect (301 HTTP) if no canonical domain name RewriteCond %{HTTP_HOST} !^odoo.example.com RewriteRule ^/(.*)$ https://odoo.example.com/$1 [R=301,NE,L] Order deny,allow Deny from all Allow from all Order deny,allow Deny from all Allow from 192.168.122.0/24 127.0.0.0/255.0.0.0 ::1/128 Order deny,allow Deny from all Allow from 192.168.122.0/24 127.0.0.0/255.0.0.0 ::1/128 # Comment to disable proxy ProxyRequests Off ProxyPreserveHost On ProxyPass /longpolling/ http://localhost:8072/longpolling/ retry=0 ProxyPassReverse /longpolling/ http://localhost:8072/longpolling/ retry=0 ProxyPass / http://localhost:8069/ retry=0 ProxyPassReverse / http://localhost:8069/ retry=0 ErrorLog /var/log/apache2/odoo.example.com-ssl.error.log LogLevel warn CustomLog /var/log/apache2/odoo.example.com-ssl.access.log combined