India

ZestyBeanz Technologies Pvt Ltd 4th Floor, Nila, Technopark Thiruvananthapuram,
India – 695581
Phone: +91 471 4063254
Fax : +91 471 2700171

   .

ZestyBeanz Technologies Pvt Ltd
61/3236, Manikkath Cross Road
Ravipuram, Kochi, India - 682016
Phone: +91 484 4063254

  UAE

Zesty Labs
Office # 2003, Millennium Plaza Building
Sheikh Zayed Rd, Dubai, UAE
Phone: +971 4333 2222​
Mobile: +971-52-7553466

  Germany​

ZestyBeanz Technologies GmbH
Reuterstraße 1
90408 Nürnberg
Fon: +49 911 4801 444
Fax: +49 911 4801 445

Setting ssl proxy for OpenERP-web

Contact Form


fahad's picture

Setting ssl proxy for OpenERP-web

Https for the client-web, encrypts communication between your webbrowser and client-web server  which is connected to openerp-server.To enable https for the you can  use web-server and use  its proxy functions.

           1. Enabling apache proxy module can be done by

                              sudo a2enmod proxy ssl proxy_http

            2. Https for the client-web can be made to run on any other port than default ssl, we have to  include the port  to be used in /etc/apache2/ports.conf inside the <IfModule mod_ssl.c> container  as

                               NameVirtualHost *:33225

                               Listen 33225 (for example)

            3. Proxy Settings-   mywebname-ssl 

                         Create a new file using and add the following lines,

                                       sudo vim /etc/apache2/sites-available/mywebname-ssl

                <VirtualHost *:33225> 
                         ServerAdmin webmaster@localhost
                         ServerName <yourwebsitename>
                         ServerAlias www.<yourwebsitename>.com   

                         SSLEngine on
                         SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem
                         SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key

                        <Proxy *>
                               Order deny,allow
                               Allow from all
                         </Proxy>
                         ProxyRequests Off
                         ProxyPass / http://127.0.0.1:8080/          (OpenERP web running port)
                         ProxyPassReverse / http://127.0.0.1:8080/    

                         # Fix IE problem (http error 408/409)
                         SetEnv proxy-nokeepalive 1
                 </VirtualHost >

           4. Enabling the site can be done by

                          sudo a2ensite mywebname-ssl

            5. Typing at the browser   https://yourwebsite:33225 will redirect you to the required web page if there are some issues you can comment the line or make the value 'False' in openerp-web.cfg

                                        tools.csrf.on = True

          If you are using the default-ssl then need to edit the lines  in
                     /etc/apache2/sites-available/default-ssl

                         <VirtualHost *:443>
                          -------------
                          -------------

                          ProxyRequests Off
                          ProxyPass / http://127.0.0.1:8080/
                          ProxyPassReverse / http://127.0.0.1:8080/

                         --------------
                         ----------------
                        </VirtualHost >

Anonymous's picture

Hi Fahad, I am working on

Hi Fahad,

I am working on Opnerp SSL part (6.1.1) and I saw your blog on this (http://www.zbeanztech.com/blog/setting-ssl-proxy-openerp-web).I am getting one error like 502 reverse proxy error when I apply https and when I run on http it is working fine.

Luis's picture

Hi Fahad: Thanks for your

Hi Fahad:

Thanks for your precious tips and help, as a matter of fact I have been able to get the OPENERP 6.1 online, with some errors but at least I am able to use Openerp online.

I am using the version 6.1 , I have been trying for a while to set up the the automated email function for send an RFQ as soon as I finished, instead to make it in PDF.

But so far all tips I have been able to catch in the internet , they do not match with nothing I have in my Openerp..

Do wo have any idea where can I achive the function to send emails directly instead to print them in PDF..

Thanks
Luis
Costa Rica

Anonymous's picture

Hi, After configured https,

Hi,
After configured https, sub menus cannot display correctly
Did you see that? Please share with us if you have any solution

fahad's picture

Hi,   DIdn't got such an

Hi,

  DIdn't got such an error before can you please provide me screen shots  
  you can contact me at fahad@zbeanztech.com

Steven's picture

Worked perfectly! I really

Worked perfectly! I really enjoy your blog and how dedicated you all have been at updating it with great posts. Thanks and keep up the good work! The OpenERP Community appreciates it.

fahad's picture

Thanks steven... its always

Thanks steven...

its always great pleasure to have comments like these...