I connect currently to my ERP server by using port 8069, this way: http://myserver:8069.
Since Apache is listening in port 80, and OpenERP server is in port 8069, I cannot make OpenERP to listen in port 80.
Is there a way to configure Apache so that when received the request, it load the content of port 8069? maybe by mean of a Proxy in virtual host definition, but I don't know how. Also, I tried to use .htaccess but a redirection occurs instead, and what I want is not to show the port number.
Any help will be appreciated,
Yes, add a virtual host with Proxy to your apache config:
<virtualhost *:80=""> ServerName myserver ServerAdmin webclient@localhost
<Proxy> Order deny,allow Allow from all </Proxy> ProxyRequests Off ProxyPass / http://127.0.0.1:8069/ ProxyPassReverse / http://127.0.0.1:8069/ # Fix IE problem (http error 408/409) SetEnv proxy-nokeepalive 1 ErrorLog /var/log/apache2/webclient-error.log CustomLog /var/log/apache2/webclient-access.log combined
And then add the --proxy-mode option to openerp-server
This works with 6.1 and 7.0
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: 3/20/13, 11:45 PM|
|Seen: 60123 times|
|Last updated: 3/16/15, 8:10 AM|