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

Odoo 12

Nginx

 

We have a customer that has multiple divisions within their company.  They are wanting to have multiple urls pointing to one odoo database.  For example, support.domain1.com and helpdesk.domain2.com would both point to the one database.  Here is a snippet of the server block in nginx:

 

server

                Listen 80 default_server;

                Listen [::]:80 default_server;

 

                SSL configuration

                #

                listen 443 ssl http2;

                listen [::]:443 ssl http2;

        server_name marionkytest.ejail.net; Managed by Certbot

        proxy_set_header X-Odoo-dbfilter odoo;

 

 

it each url has its own block with the above filter to the same db, would that work?  Or is this even possible?

 

Thanks, thanks.

Dave

Avatar
Discard
Best Answer

I tested that a little bit and pass some steps, so if it can help ...
You can address an odoo instance with multiple urls, you only need to duplicate your server nginx block and at first glance, it works.
But I have not tested this a lot, and for instance, odoo stores the url of the database in the system parameter web.base.url and of course you can have only 1 value in it : it may happen some issues from that, or other things I have not seen yet.
that's my cent...

Avatar
Discard
Related Posts Replies Views Activity
3
May 24
21462
0
Oct 23
977
3
Nov 20
8005
1
Jul 19
1488
2
Apr 18
26376