Example for an apache2 reverse-proxy configuration for an odoo server.


# only if you use SSL
SSLProxyEngine on

# Auf odoo mittels Reverse Proxy umleiten
<IfModule mod_proxy.c>
    <IfModule mod_proxy_http.c>
        ProxyRequests Off
        ProxyPreserveHost On
        ProxyErrorOverride off
        RequestHeader set "X-Forwarded-Proto" "https"
        SetEnv proxy-nokeepalive 1

        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
    </IfModule>
</IfModule>