I am trying to setup a machine on which I want to host several OpenERP instances.
So I've made 2 servers configuration file for two OpenERP instances running on different ports.
Also I've created two Apache VHost, with proxy_pass in order to redirect :
- `openerp1.domain.com` to `openerp1.domain.com:port1`
- `openerp2.domain.com` to `openerp2.domain.com:port2`
But I still can't manage redirections based on subdomain value (openerp1 or openerp2)
When I access openerp2.domain.com, I get content from openerp1.domain.com
Here are is one of the vhost file:
CustomLog /var/log/apache2/cap_oe_template.access.log combined
Allow from all
ProxyPass / http://127.0.0.1:9069/
ProxyPassReverse / http://127.0.0.1:9069/
Options Indexes FollowSymLinks MultiViews
allow from all
# Fix IE problem (http error 408/409)
SetEnv proxy-nokeepalive 1
the other vhost file is similar, the only changes are in :
`ProxyPass / http://127.0.0.1:8069/`
`ProxyPassReverse / http://127.0.0.1:8069/`
Have you ever try to host multiple OpenERP instances with redirection of the subdomain on the appropriate port on the same machine ?
Do you see anything wrong in what I did ?
Thanks for your help
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 6/11/14, 9:33 AM|
|Seen: 1711 times|
|Last updated: 3/16/15, 8:10 AM|