Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
4525 Lượt xem

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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 7 17
4737
1
thg 11 15
9295
0
thg 1 25
1233
1
thg 2 23
3139
1
thg 1 23
5337