Skip to content

Instantly share code, notes, and snippets.

@mrsarm
Created February 28, 2014 18:32
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save mrsarm/9276869 to your computer and use it in GitHub Desktop.
Save mrsarm/9276869 to your computer and use it in GitHub Desktop.
OpenERP Reverse Proxy Configuration for Apache 2 Server
#
# /etc/apache2/sites-available/openerp
#
# OpenERP Reverse Proxy Configuration for Apache 2.
#
# Authors: 2014 Mariano Ruiz <mrsarm@gmail.com>
#
# After copy this file execute:
#
# sudo a2ensite openerp
# sudo a2enmod proxy_http
# sudo service apache2 restart
#
<VirtualHost *:80>
ServerName erp.mrdev.com.ar
ServerAdmin mrsarm@gmail.com
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>
@aorborc
Copy link

aorborc commented Aug 26, 2014

When I run sudo a2ensite openerp it says the Site openerp does not exist

I copied this file under /etc/apache2/sites-available/openerp and edited

@dimitrisand
Copy link

The configuration file must have the .conf extention like openerp-ssl.conf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment