Hi,
1. Each Odoo instance must listen on a different port. Locate the
configuration files for each Odoo instance (typically located at
/etc/odoo/odoo.conf or /etc/odoo.conf) and set the xmlrpc_port option to
unique ports for each instance.
[options]
; Set the port for Odoo version 1
xmlrpc_port = 8069
; Set the port for Odoo version 2
xmlrpc_port = 8070
2. The example of nginx configuration is:
server {
listen 443 ssl;
server_name custom-domain.com;
ssl_certificate /path/to/fullchain.pem;
ssl_certificate_key /path/to/privkey.pem;
location /odoo1 {
proxy_pass http://127.0.0.1:8069;
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;
proxy_set_header X-Forwarded-Proto $scheme;
}
location /odoo2 {
proxy_pass http://127.0.0.1:8070;
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;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
You can refer the following log for more details:
https://www.cybrosys.com/blog/how-to-setup-two-versions-of-odoo-in-the-same-server-with-one-domain-and-ssl
Hope it helps
Dear All,
Please help me.