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.

1

openerp 8 website hosting on domain

By
NetbeamERP Technology
on 2/1/14, 2:50 AM 4,533 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.

2
ViktorV
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://192.168.2.143:8069/;  # 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

$proxy_add_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.

ViktorV
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.

ViktorV
on 4/1/14, 3:28 AM
1
Alejandro
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://192.168.2.143:8069/ 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

ViktorV
on 2/16/14, 2:44 AM

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

5 follower(s)

Stats

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