Przejdź do zawartości
Odoo Menu
  • Zaloguj się
  • Wypróbuj za darmo
  • Aplikacje
    Finanse
    • Księgowość
    • Fakturowanie
    • Wydatki
    • Arkusz kalkulacyjny (BI)
    • Dokumenty
    • Podpisy
    Sprzedaż
    • CRM
    • Sprzedaż
    • PoS Sklep
    • PoS Restauracja
    • Subskrypcje
    • Wypożyczalnia
    Strony Internetowe
    • Kreator Stron Internetowych
    • eCommerce
    • Blog
    • Forum
    • Czat na Żywo
    • eLearning
    Łańcuch dostaw
    • Magazyn
    • Produkcja
    • PLM
    • Zakupy
    • Konserwacja
    • Jakość
    Zasoby Ludzkie
    • Pracownicy
    • Rekrutacja
    • Urlopy
    • Ocena pracy
    • Polecenia Pracownicze
    • Flota
    Marketing
    • Marketing Społecznościowy
    • E-mail Marketing
    • SMS Marketing
    • Wydarzenia
    • Automatyzacja Marketingu
    • Ankiety
    Usługi
    • Projekt
    • Ewidencja czasu pracy
    • Usługi Terenowe
    • Helpdesk
    • Planowanie
    • Spotkania
    Produktywność
    • Dyskusje
    • Sztuczna inteligencja
    • IoT
    • VoIP
    • Wiedza
    • WhatsApp
    Aplikacje trzecich stron Studio Odoo Odoo Cloud Platform
  • Branże
    Sprzedaż detaliczna
    • Księgarnia
    • Sklep odzieżowy
    • Sklep meblowy
    • Sklep spożywczy
    • Sklep z narzędziami
    • Sklep z zabawkami
    Żywienie i hotelarstwo
    • Bar i Pub
    • Restauracja
    • Fast Food
    • Pensjonat
    • Dystrybutor napojów
    • Hotel
    Agencja nieruchomości
    • Agencja nieruchomości
    • Biuro architektoniczne
    • Budowa
    • Zarządzanie nieruchomościami
    • Ogrodnictwo
    • Stowarzyszenie właścicieli nieruchomości
    Doradztwo
    • Biuro księgowe
    • Partner Odoo
    • Agencja marketingowa
    • Kancelaria prawna
    • Agencja rekrutacyjna
    • Audyt i certyfikacja
    Produkcja
    • Tekstylia
    • Metal
    • Meble
    • Jedzenie
    • Browar
    • Prezenty firmowe
    Zdrowie & Fitness
    • Klub sportowy
    • Salon optyczny
    • Centrum fitness
    • Praktycy Wellness
    • Apteka
    • Salon fryzjerski
    Transakcje
    • Złota rączka
    • Wsparcie Sprzętu IT
    • Systemy energii słonecznej
    • Szewc
    • Firma sprzątająca
    • Usługi HVAC
    Inne
    • Organizacja non-profit
    • Agencja Środowiskowa
    • Wynajem billboardów
    • Fotografia
    • Leasing rowerów
    • Sprzedawca oprogramowania
    Przeglądaj wszystkie branże
  • Community
    Ucz się
    • Samouczki
    • Dokumentacja
    • Certyfikacje
    • Szkolenie
    • Blog
    • Podcast
    Pomóż w nauce innym
    • Program Edukacyjny
    • Scale Up! Gra biznesowa
    • Odwiedź Odoo
    Skorzystaj z oprogramowania
    • Pobierz
    • Porównaj edycje
    • Wydania
    Współpracuj
    • Github
    • Forum
    • Wydarzenia
    • Tłumaczenia
    • Zostań partnerem
    • Usługi dla partnerów
    • Zarejestruj swoją firmę rachunkową
    Skorzystaj z usług
    • Znajdź partnera
    • Znajdź księgowego
    • Spotkaj się z doradcą
    • Usługi wdrożenia
    • Opinie klientów
    • Wsparcie
    • Aktualizacje
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Zaplanuj demo
  • Cennik
  • Pomoc
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
Wszystkie posty Osoby Odznaki
Tagi (Zobacz wszystko)
odoo accounting v14 pos v15
O tym forum
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
Wszystkie posty Osoby Odznaki
Tagi (Zobacz wszystko)
odoo accounting v14 pos v15
O tym forum
Pomoc

Odoo 18 multi domains with multi databases dbfilter

Zaprenumeruj

Otrzymaj powiadomienie o aktywności w tym poście

To pytanie dostało ostrzeżenie
automaticlist_dbdbfiltermultidomainmultidatabase
2 Odpowiedzi
159 Widoki
Awatar
Asep Sidhi

I have several domains with multiple existing databases in my Odoo 18. I already activate the website app and set each domain within website > setting for each database.


   DatabaseA for mydomain1.com

   DBossB for myurl2.com


I want each domains automatically connect with its default database without database selector or create a new database.


within odoo.conf, I try to use :

dbfilter = ^%d$ 

list_db = False


and it variants (using ^%d or ^%h$ or ^%h ), but it always ask me to create new database . 


How to solve this problem ? Looking forward for how to solve this ....

0
Awatar
Odrzuć
Awatar
Zehntech Technologies Inc.
Najlepsza odpowiedź

Hello, 

This is usually caused by the dbfilter pattern not matching your actual database names.

The configuration dbfilter = ^%d$ works only when the database name matches the domain name (for example, mydomain1 → mydomain1.com).

If your databases are named differently (e.g., DatabaseA and DBossB), Odoo will not find a matching database and may redirect to the database manager page.

Please verify:

  • The database names match your dbfilter rule.
  • proxy_mode = True is enabled if you are using Nginx/Apache as a reverse proxy.
  • The domains are correctly pointing to the Odoo instance and sending the proper Host header.

In cases where database names differ from domain names, you may need a custom dbfilter expression or rename the databases to align with the domain pattern.

Hope this works for you! If you need any help implementing this or want a more optimized approach, feel free to reach out for further discussion.

Regards,

Zehntech Technologies Inc.

santosh.sekwadia@zehntech.com

0
Awatar
Odrzuć
Awatar
Gharis Javed
Najlepsza odpowiedź

The issue is that dbfilter = ^%d$ relies on the subdomain matching the database name exactly. When your domain is mydomain1.com, Odoo extracts the hostname and tries to match it against the regex pattern — but mydomain1.com does not match DatabaseA because there is no subdomain to extract.

The production-safe solution is to use %h with nginx rewriting the Host header per domain.

Step 1 — odoo.conf

dbfilter = ^%h$
list_db = False

Step 2 — nginx config for each domain

For mydomain1.com:

server {
    server_name mydomain1.com;
    location / {
        proxy_pass http://127.0.0.1:8069;
        proxy_set_header Host DatabaseA;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
    }
}

For myurl2.com:

server {
    server_name myurl2.com;
    location / {
        proxy_pass http://127.0.0.1:8069;
        proxy_set_header Host DBossB;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
    }
}

Why this works:

proxy_set_header Host DatabaseA rewrites the Host header Odoo receives to match your database name exactly. The dbfilter ^%h$ then matches the rewritten host against your database name and connects automatically with no selector shown.

Why your current setup fails:

^%d$ extracts only the subdomain portion. On a root domain like mydomain1.com there is no subdomain — %d returns empty, the filter matches nothing, and Odoo falls back to the database creation screen.

After updating nginx:

sudo nginx -t && sudo systemctl reload nginx
sudo systemctl restart odoo

Muhammad Gharis Javed — Odoo v17/18/19 Backend Engineer

0
Awatar
Odrzuć
Podoba Ci się ta dyskusja? Dołącz do niej!

Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!

Zarejestruj się
Powiązane posty Odpowiedzi Widoki Czynność
Odoo 14 / bitanmi - dbFilter <again>
dbfilter
Awatar
0
gru 20
2698
Welcome message whatsapp
automatic WhatsApp
Awatar
Awatar
Awatar
2
cze 26
455
Managing 2 companies with separate databases
database multidatabase
Awatar
Awatar
1
lip 25
2231
odoo.sql_db: Closed 1 connections
dbfilter Docker
Awatar
0
lis 24
2741
Odoo 14-Automated action
automatic PythonCode
Awatar
Awatar
1
sty 24
2784
Społeczność
  • Samouczki
  • Dokumentacja
  • Forum
Open Source
  • Pobierz
  • Github
  • Runbot
  • Tłumaczenia
Usługi
  • Hosting Odoo.sh
  • Wsparcie
  • Aktualizacja
  • Indywidualne rozwiązania
  • Edukacja
  • Znajdź księgowego
  • Znajdź partnera
  • Zostań partnerem
O nas
  • Nasza firma
  • Zasoby marki
  • Skontaktuj się z nami
  • Oferty pracy
  • Wydarzenia
  • Podcast
  • Blog
  • Klienci
  • Informacje prawne • Prywatność
  • Bezpieczeństwo Odoo
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk Slovenščina Español (América Latina) Español Svenska ภาษาไทย Türkçe українська Tiếng Việt

Odoo to pakiet aplikacji biznesowych typu open source, które zaspokoją wszystkie potrzeby Twojej firmy: CRM, eCommerce, księgowość, inwentaryzacja, punkt sprzedaży, zarządzanie projektami itp.

Unikalną wartością Odoo jest to, że jest jednocześnie bardzo łatwe w użyciu i w pełni zintegrowane.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now