This question has been flagged
10 Replies
12915 Views

My client buy a domain name service with vps. I ahve installed odoo=8 on that vps and asked him to type like http://domain name:8069. My client don't want to type that :8069 after domain name. How can i configure odoo ? when i run server like

./odoo.py --addons ./addons,../custom/addons --xmlrpc-port=80. It is showing error permission denied.

 

Avatar
Discard
Best Answer

Yes, that's possible, you can set the port like you mentioned.

But beware! port 80 is often used by apache, ngix or internet server softtware on your server. And if thats the case, you cannot run a second piece of software on the same port.

Also your current user is maybe not allowed to use port below 1023.

 

Avatar
Discard
Best Answer

yes it is posible

Avatar
Discard

Hello i also want to link my domain name with odoo 12 version.

1. I want to run my domain name without port number

2. I set my domain as https;

3.I want to installed odoo module will open with that domain name.

can i do this ? I am using nginx. any one help me for this step by step.

Best Answer

Try to use Nginx

Just follow the steps described in the section Install and Configure Nginx (only this section)( https://www.rosehosting.com/blog/install-odoo-formerly-openerp-with-nginx-on-an-ubuntu-vps/ )

 

Avatar
Discard
Author

Thank you BARA, Can you give me some more information regarding this. When look into youtube videos, they are mentioning only installation and configuration of php. How can i configure odoo with nginx?

Best Answer

Just use iptables in terminal


iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 8069
iptables-save

The above rule will redirect your 80 port to 8069

Avatar
Discard
Author

Thank you Jothimani. I did but not working.

i'm running by the same, anyway i give another one. Install nginx in your VPS. upstream openerp_servers{ server localhost:8069 max_fails=3 fail_timeout=30s; } server { listen 80; server_name example.com; } location /{ proxy_pass http://openerp_servers; proxy_next_upstream error timeout invalid_header http_500 http_502 http_503 http_504; proxy_redirect off; proxy_set_header Host $http_host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto https; } } location ~* /web/static/ { proxy_cache_valid 200 60m; proxy_buffering on; expires 864000; proxy_pass http://openerp_servers; } save this configuration in your nginx config file as /etc/nginx/sites-enabled/server.com

Author

Apache running on port 80

Best Answer

https secure protocol is a minimal requirement for any erp exposed to internet. You need a proxy to redirect 80 to 443, exchange the certificate and then proxy 443 to 8069. Nating port 80 to 8069 provides no protection at all.

Avatar
Discard

Hello i also want to link my domain name with odoo 12 version.

1. I want to run my domain name without port number

2. I set my domain as https;

3.I want to installed odoo module will open with that domain name.

can i do this ? I am using nginx. any one help me for this step by step.

Best Answer

Hello  i also want to link my domain name with odoo 12 version. 

1. I want to run my domain name without port number 

2. I set my domain as https;

3.I want to installed odoo module will open with that domain name.


can i do this ? I am using nginx. any one help me for this step by step.

Avatar
Discard