Skip to Content
Menu
This question has been flagged
1 Reply
5237 Views

Hello, I would like to redirect a domain name to a port Let me explain. I have a Ubuntu 12.04 server, and this server, there are two solutions OpenERP two deferent ports. For IP @ server, I created two subdomains with hostgator test1.openerptn.tn, test2.openerptn.tn. To access each solution test1.openerptn.tn: 8069 for the first solution and test2.openerptn.tn: 8068 for the second. Is it possible to run both under test1.openerptn.tn test2.openerptn.tn areas and each subdomain has its port. I think it is possible with iptables and NAT config but I do not know how.

Avatar
Discard
Best Answer

Try using a reverse proxy like NginX and in the conf files you can say this domain to this port and that domain to that port. Also, you can use --db-filter=^%h$ option to filter the database list to the current domain, if you are running one instance of Odoo. If two instances than the solution is using a reverse proxy. Don't forget to set the listen port of Odoo 

Avatar
Discard