Search code examples
odooodoo-13

About dbfilter not catching the correct database on Odoo 13


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 which 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 port 80 and not port 443 which is weird since I'm accessing the site using https

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


Solution

  • 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.