Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

How to set up OpenERP7 with SSL and Apache2?

By
Juan Formoso
on 7/30/14, 8:15 AM 1,489 views

I am trying to connect to localhost on 8068 and go to my OpenERP7 instance using SSL. I followed several tutorials but everyone does the same. I created the certificate and the key, and this site in Apache2 (which is already enabled):

<VirtualHost *:443>
   SSLEngine on
   SSLCertificateFile /etc/ssl/openerp/server.crt
   SSLCertificateKeyFile /etc/ssl/openerp/server.key
   ProxyRequests Off
   <Proxy *>
      Order deny,allow Allow from all
   </Proxy>
   ProxyVia On
   ProxyPass / http://127.0.0.1:8068/
   <location / >
      ProxyPassReverse /
   </location> ProxyPassReverse / http://127.0.0.1:8068/
   RequestHeader set "X-Forwarded-Proto" "https"
   # Fix IE problem (httpapache proxy dav error 408/409)
   SetEnv proxy-nokeepalive 1
</VirtualHost>

Then I changed next lines of my OpenERP configuration file:

secure_cert_file = /etc/ssl/openerp/server.crt
secure_pkey_file = /etc/ssl/openerp/server.key
xmlrpcs = True
xmlrpcs_interface =
xmlrpcs_port = 8068

Finally, I restarted both services (Apache2 and OpenERP). When I write on the URL https://localhost:8068 I get 107 ERROR, if I type https://localhost I get 503 ERROR (after asking me whether I trust the server or not). I do not have any idea of what I am doing wrong.

I hope someone can help me to fix this or give me some clue. Thank you.

@Rui Andrada thank you! I switched to 8069, but still same problem

Juan Formoso
on 8/12/14, 6:55 AM
0
Rui Andrada
On 8/2/14, 1:29 PM

I think you should use the standart Odoo port 8069 and use the xmlrpc instead of xmlrpcs.

In Odoo configuration

xmlrpc = True
xmlrpc_interface = 127.0.0.1
xmlrpc_port = 8069

In apache

ProxyPass / http://127.0.0.1:8069/

You can have another problem but for now I think you have to configure only https for Apache and from Apache to Odoo use the unencryted connection, there's no problem because you'll configure the Odoo to just accept connections from localhost/127.0.0.1

 

Your Answer

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

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 7/30/14, 8:15 AM
Seen: 1489 times
Last updated: 3/16/15, 8:10 AM