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.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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.
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?
Website work? no need edit openerp.config. you not need type name, need select. if not database in droplist - something wrong.
Thank You very much. It worked after a Restart of the Virtual Machine. A Restart of Openerp was not sufficient (stop start).
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.
install on godaddy server openerp and nginx, and configure like a top.
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