About dbfilter not catching the correct database on Odoo 13

穿精又带淫゛_ 提交于 2020-04-30 10:07:19

问题


I have example.com site that is now subdomain.example.com (had been renamed to that subdomain)

On my odoo config file I have:

dbfilter = ^%d$

The database name is example. As far as I know, that should still catch the database but seems that I can't access the site. Not sure if it's an odoo issue or if I'm missing something on my nginx configuration wich is this: https://pastebin.com/KJxbJPKz (this used to work when the site was named example.com, I made the corresponding changes)

I'm mentioning nginx because I'm getting the 404 error specified when accessing por 80 and not port 443 wich is weird since I'm accesing the site using https

I must clarify that the corresponding upstreams are defined and working (I have other sites working on that server)


回答1:


You are filtering Database names equal to a subdomain, So you need to manually enter every subdomain in /etc/hosts, only then it starts working.

Thanks




回答2:


As a misunderstanding, I thought that setting dbfilter = ^%d$ will catch the database called example regarding of the subdomain name.

So I thought and saw some forum answers pointing that sub.example.com, as well as othersub.example.com, will select example as the database as it was the domain. But it works the other way. I mean Working in this way, if subdomain.example.com is your site, and dbfilter is set as before, the database name should be subdomain and not example.

My solution was to rename the database to subdomain and after that regenerate the web assets so it works properly now.



来源:https://stackoverflow.com/questions/61035343/about-dbfilter-not-catching-the-correct-database-on-odoo-13

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!