Odoo Help


openerp 8 website hosting on domain

NetbeamERP Technology
on 2/1/14, 2:50 AM 5,823 views

i want to host my openerp 8 website to my own domain.

right now it is working on local host but i want it on my own domain.

please help.

Viktor Vorobjov
On 2/3/14, 9:21 AM

Yo can use - nginx.

In 02.02.2014 need some tune /openerp_8.0/openerp/http.py Because when some body go on you page - for start need select Data Base.

diff --git a/openerp/http.py b/openerp/http.py
index 7ce70795a82f0998da67bc6da552d2ff1adf193a..c4d82a56f5a3243b73da98fe43df751887f69095 100644
--- a/openerp/http.py
+++ b/openerp/http.py
@@ -1113,6 +1113,9 @@ def db_monodb(httprequest=None):
 db_session = httprequest.session.db
 if db_session in dbs:
     return db_session
 +    else:
 +        db_session = "prolv8" # data base name for defaul not need select any more.
 +        return db_session

Nginx /etc/nginx/conf.d/youdomain.conf

server {

    listen 80;
    server_name  youdomain;
    charset utf-8;

    access_log  /var/log/nginx/prolv-access.log;      

    error_log   /var/log/nginx/prolv-error.log;  

            location / {
                proxy_pass         hxxp://;  # openerp 8  xx to tt
                proxy_redirect     off;

                proxy_set_header   Host             $host;
                proxy_set_header   X-Real-IP        $remote_addr;
                proxy_set_header   X-Forwarded-For


                client_max_body_size       10m;
                client_body_buffer_size    128k;

                proxy_connect_timeout      90;
                proxy_send_timeout         90;
                proxy_read_timeout         90;

                proxy_buffer_size          4k;
                proxy_buffers              4 32k;
                proxy_busy_buffers_size    64k;
                proxy_temp_file_write_size 64k;


I tried to edit http.py as described, but didnt work as expected. Still have to select the DB -> in fact I have to type the name to the "select database" field. I wonder if something is wrong in my openerp.config file?

Tobias Frankl
on 2/3/14, 1:43 PM

Website work? no need edit openerp.config. you not need type name, need select. if not database in droplist - something wrong.

Viktor Vorobjov
on 2/3/14, 3:17 PM

Thank You very much. It worked after a Restart of the Virtual Machine. A Restart of Openerp was not sufficient (stop start).

Tobias Frankl
on 2/4/14, 5:56 AM

Hi Viktor, It worked on localhost fine. but i want to run my website from my hosting domain http://www.xxxx.com which on godaddy server.

NetbeamERP Technology
on 3/31/14, 7:59 AM

install on godaddy server openerp and nginx, and configure like a top.

Viktor Vorobjov
on 4/1/14, 3:28 AM
On 2/15/14, 5:29 AM

I get this error :

502 Bad Gateway nginx/1.1.19

Something wrong in the domain.conf I think

I only replace this line proxy_pass hxxp:// with this other proxy_pass http://PublicIP:8069/

What I'm missing ?

directly work public ip? may be firewall or routing in your's intranet

Viktor Vorobjov
on 2/16/14, 2:44 AM

About This Community

This platform 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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

5 follower(s)


Asked: 2/1/14, 2:50 AM
Seen: 5823 times
Last updated: 3/16/15, 8:10 AM