Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
9281 มุมมอง

Is it possible to access odoo database from sub subdomain? eg: I have a domain mysite.com but that is not linked to domain of odoo hosting server. I created 'odoo' entry in mysite.com DNS Zone and now odoo.mysite.com is pointing to odoo's server IP (xx.xx.xx.xx).  Now I have database in odoo server like  test1, test2, test3.

Is it possible to access
test1 db with  test1.odoo.mysite.com

test2 db with  test2.odoo.mysite.com

test3 db with  test3.odoo.mysite.com

r is it necessary to associate domain name on odoo's server IP. I am using nginx for reverse proxy

Thanks in advance.


อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

1- In your dns you need to point *.odoo.mysite.com to your server ip

2- In your nginx you need to set the server name with a wildcard regular expression like this:

server_name ~^(?<subdomain>.+).odoo.mysite.com;

3- Config you Odoo instance with dbfilter option to associate the subdomain to the database

dbfilter = ^%d$


And that's all


อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
Timeout error with nginx แก้ไขแล้ว
3
พ.ค. 24
148988
1
ก.ค. 16
3494
3
ส.ค. 23
8308
1
ม.ค. 20
4710
1
ก.พ. 20
3685