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

Hi all,

I used subdomain as database name, so tried this.

my dbs:

test1, db1

so i tried this as "test1.example.com", "db1.example.com" its working very well.

but i tried "demo.example.com" (there is no db named "demo", i know), it directs to "demo.example.com/web/database/manager".

here i want show "demo.example.com" is not available insted of manage databases page. is there any way to achive this? please let me know...!

thanks in advance

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

You can use  test1, db1 as database names, but you you have to set  up:

dbfilter = ^%d$

Check db_filter function to understand how it works: 

https://github.com/odoo/odoo/blob/master/openerp/http.py

 

To handle demo.example.com you can configure your web server (nginx etc.) according to your needs

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ก.ค. 17
4733
1
พ.ย. 15
9291
0
ม.ค. 25
1230
1
ก.พ. 23
3135
DB Filter based on subdomain not working แก้ไขแล้ว
1
ม.ค. 23
5330