Skip to content

Instantly share code, notes, and snippets.

@mrsarm
Created February 28, 2014 18:32

Revisions

  1. mrsarm created this gist Feb 28, 2014.
    37 changes: 37 additions & 0 deletions openerp-httpd.conf
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,37 @@
    #
    # /etc/apache2/sites-available/openerp
    #
    # OpenERP Reverse Proxy Configuration for Apache 2.
    #
    # Authors: 2014 Mariano Ruiz <[email protected]>
    #
    # After copy this file execute:
    #
    # sudo a2ensite openerp
    # sudo a2enmod proxy_http
    # sudo service apache2 restart
    #

    <VirtualHost *:80>
    ServerName erp.mrdev.com.ar
    ServerAdmin [email protected]

    ProxyRequests Off

    <Proxy *>
    Order deny,allow
    Allow from all
    </Proxy>

    ProxyPass / http://localhost:8069/
    ProxyPassReverse / http://localhost:8069/

    # Fix IE problem (httpapache proxy dav error 408/409)
    SetEnv proxy-nokeepalive 1

    ErrorLog ${APACHE_LOG_DIR}/openerp.log
    # Possible values include: debug, info, notice, warn, error, crit,
    # alert, emerg.
    LogLevel warn
    CustomLog ${APACHE_LOG_DIR}/openerp-access.log combined
    </VirtualHost>