关于dbfilter无法在Odoo 13上捕获正确的数据库 [英] About dbfilter not catching the correct database on Odoo 13

查看:333
本文介绍了关于dbfilter无法在Odoo 13上捕获正确的数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个example.com网站,现在是subdomain.example.com(已重命名为该子域)

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

在我的odoo配置文件中,我有:

On my odoo config file I have:

dbfilter = ^%d$

数据库名称为example.据我所知,它仍然可以捕获数据库,但似乎无法访问该站点.不知道这是不是odoo问题,或者我是否在我的nginx配置上缺少什么,这是: https://pastebin. com/KJxbJPKz (当站点命名为example.com时,该方法就可以正常工作,我进行了相应的更改)

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)

我之所以提到nginx,是因为在访问por 80时收到指定的404错误,而不是443端口,这很奇怪,因为我使用https访问该网站

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)

推荐答案

作为一个误解,我认为设置dbfilter = ^%d$会捕获有关子域名的example示例数据库.

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

因此,我思考并看到一些论坛答案,指出sub.example.com和othersub.example.com将选择 example 作为域,以此作为数据库.但这是另一回事.我的意思是以这种方式工作如果subdomain.example.com是您的站点,并且dbfilter设置为以前,则数据库名称应为 subdomain 而不是示例 .

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.

我的解决方案是将数据库重命名为 subdomain ,然后重新生成Web资产,使其现在可以正常工作.

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

这篇关于关于dbfilter无法在Odoo 13上捕获正确的数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆