تخطي للذهاب إلى المحتوى
أودو القائمة
  • تسجيل الدخول
  • جرب مجاناً
  • التطبيقات
    المالية
    • المحاسبة
    • فوترة
    • النفقات
    • جدول البيانات (BI)
    • المستندات
    • توقيع إلكتروني
    المبيعات
    • إدارة علاقات العملاء
    • المبيعات
    • نقطة البيع للمتاجر
    • نقطة البيع للمطاعم
    • الاشتراكات
    • تأجير
    المواقع الإلكترونية
    • أداة بناء المواقع الإلكترونية
    • متاجر إلكترونية
    • مدونة
    • المنتدى
    • دردشة مباشرة
    • التعليم الإلكتروني
    سلسلة التوريد
    • المستودعات
    • التصنيع
    • إدارة دورة حياة المنتج
    • المشتريات
    • الصيانة
    • الجودة
    الموارد البشرية
    • موظفون
    • التوظيف
    • إجازة عمل
    • التقييمات
    • الإحالات
    • تطبيق الأسطول
    التسويق
    • التسويق الإجتماعي
    • التسويق عبر البريد الإلكتروني
    • التسويق عبر الرسائل النصية
    • فعاليات
    • أتمتة التسويق
    • الاستطلاعات
    الخدمات
    • المشاريع
    • الجداول الزمنية
    • الخدمة الميدانية
    • مكتب المساعدة
    • التخطيط
    • مواعيد
    اﻹنتاجية
    • مناقشة
    • الموافقات
    • إنترنت الأشياء "IoT"
    • بروتوكول ربط المحادثات الصوتية عبر الإنترنت
    • المعرفة
    • WhatsApp
    التطبيقات الخارجية ستوديو أودو منصة أودو السحابية
  • قطاعات الأعمال
    البيع بالتجزئة
    • متجر كتب
    • متجر ملابس
    • متجر أثاث
    • متجر بقالة
    • متجر معدات
    • متجر ألعاب
    الطعام والضيافة
    • بار وحانة
    • المطعم
    • مطعم للوجبات السريعة
    • نزل للضيوف
    • موزّع مشروبات
    • فندق
    العقارات
    • وكالة عقارات
    • شركة هندسة معمارية
    • البناء
    • إدارة العقارات
    • العناية بالحدائق
    • اتحاد مُلاّك العقارات
    استشارة
    • مؤسسة محاسبية
    • شريك أودو
    • وكالة تسويقية
    • منشأة قانونية
    • استقطاب المواهب
    • التدقيق والتوثيق
    التصنيع
    • الأقمشة
    • معدني
    • الأثاث
    • الطعام
    • مصنع خمور
    • هدايا الشركات
    الصحة واللياقة البدنية
    • نادي رياضي
    • متجر نظارات
    • مركز لياقة بدنية
    • الممارسون الصحيون
    • صيدلية
    • صالون تصفيف الشعر
    التجارة
    • عامل صيانة
    • الأجهزة والمعدات التقنية ودعمها
    • أنظمة الطاقة الشمسية
    • صانع أحذية
    • خدمات التنظيف
    • خدمات التكييف (HVAC)
    غير ذلك
    • منظمة غير ربحية
    • وكالة بيئية
    • تأجير لوحات إعلانية
    • تصوير
    • تأجير دراجات
    • بائع وسيط للبرمجيات
    تصفح كافة قطاعات الأعمال
  • مجتمع أودو
    تعلم
    • دروس
    • التوثيق
    • شهادات
    • التدريب
    • مدونة
    • بودكاست
    قم بتعزيز التعليم
    • برنامج تعليم
    • Scale UP! لعبة الأعمال
    • قم بزيارة أودو
    احصل على البرنامج
    • تحميل
    • قارنْ الإصدارات
    • إطلاق
    تعاون
    • جيت هاب "Github"
    • المنتدى
    • فعاليات
    • الترجمات
    • كنْ شريكاً
    • خدمات الشركاء
    • سجل مكتب المحاسبة الخاص بك
    احصل على الخدمات
    • اعثر على شريك
    • اعثر على محاسب
    • قابل أحد مرشدي الأعمال
    • خدمات التنفيذ
    • مراجع العملاء
    • الدعم
    • الترقيات
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    الحصول على عرض توضيحي
  • الأسعار
  • المساعدة

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • إدارة علاقات العملاء
  • e-Commerce
  • المحاسبة
  • المخزون
  • PoS
  • المشروع
  • MRP
All apps
يجب أن تكون مسجلاً حتى تتفاعل مع المجتمع.
كافة المنشورات الأفراد الشارات
علامات التصنيف (عرض الكل)
odoo accounting v14 pos v15
حول هذا المنتدى
يجب أن تكون مسجلاً حتى تتفاعل مع المجتمع.
كافة المنشورات الأفراد الشارات
علامات التصنيف (عرض الكل)
odoo accounting v14 pos v15
حول هذا المنتدى
المساعدة

[Fixed] v10 - Multiple Domains with one Odoo Install

اشتراك

تسلم الإشعارات عندما يكون هناك نشاط في هذا المنشور

لقد تم الإبلاغ عن هذا السؤال
multipledomains
10 الردود
14562 أدوات العرض
الصورة الرمزية
Sean Donovan

I wanted one Odoo server to handle multiple low traffic sites on different domains.  Because multi-company is not well supported in the Community version (either it doesn't work or is not clearly documented), the best I could do was run Odoo against multiple databases, one for each domain.  I wanted the setup as simple as possible and with luck I found a way that doesn't require modifying source code (changing h.partition in "http.py") or setting up Apache as a proxy.

Here is how:

  1. Install Odoo as you normally would.

  2. Using iptables ("iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 8069") point 8069 to 80 (if you are using UFW - make sure to open both ports! - "ufw allow 8069", and add the iptables line to /etc/rc.local to make it stick around after a reboot)

  3. Create the databases for your domains, but the database name *has* to take the form of "<domainname>_<TLD>", for example "yourdomain.com" should have a database named "yourdomain_com" with an underscore between the domain name and TLD.  If you try to use a dash instead of an underline, Odoo says it is not an allowed character, which must have been a change with v10 because everywhere else said use a dash.

  4. Then edit "/etc/odoo/odoo.conf" and add "dbfilter = %h" (I did it before the addons_path, but I don't think it matters)  There is endless documentation for using "%d" for subdomains, but very little for domains.

  5. Restart Odoo ("service odoo restart")

  6. Point your domain A records at Odoo and each site will then pick up it's respective database. 

You can actually do all this in reverse and it will still work, i.e. add dbfilter to odoo.conf, then visit each domain and create their respective databases (still appropriately named with underscores) for each domain.

A few caveats:

  1. You will notice that if you go to the database manager, it will only show you the database for the current domain, i.e. if you have two databases, one "myfirstdomain_com" and "mysecondomain_org", if you visit /web/database/manager from myfirstdomain.com, you will only see the myfirstdomain_com database.  The "mysecondomain_org" will be hidden.  You also can't fool Odoo by going to the database selector with an IP address, the only way to manage all the databases at once is to comment out the "dbfilter" code in odoo.conf.

  2. The domain must remove the "www" otherwise, it will fail.

  3. If you messed something up, you will get the database creation page popping back up.

It took me most of the day, but I figured it out with a lot of googling and just trying random things.  Someone else might as well save the hours if it takes me a half hour to document it.

Sean.

3
الصورة الرمزية
إهمال
Hilar Andikkadavath

Nice work.

Sudhir Arya (ERP Harbor Consulting Services)

Good job!!!

الصورة الرمزية
Sean Donovan
الكاتب أفضل إجابة

(Since I can't delete this misthreaded answer) Odoo v10 does not allow dashes in the database name and why install any webserver when Odoo can do it by adding a single line to the configuration line.

0
الصورة الرمزية
إهمال
Ermin Trevisan

I did not test it yet, but you could also use underscores, IIRC.

Ermin Trevisan

But I would use %d instead of %h anyway. This works fine for the most cases because the www. gets stripped off.

Ermin Trevisan

Also it is not good practice to be forced to remove "www." from a FQDN. Keeping the "www." subdomain is mostly recommended for convenience and SEO reasons.

الصورة الرمزية
calvin
أفضل إجابة

 Is it  possible to add domain filter on the odoo which running subdomain filter?.

0
الصورة الرمزية
إهمال
الصورة الرمزية
Roberto Zanardo
أفضل إجابة

I've setup the environment using your suggestions and works on Odoo 11 too, also on windows:

http://robertozanardo.com/blog/2017/10/06/testing-odoo-11-port-80-with-multi-web-site-windows-server/

0
الصورة الرمزية
إهمال
الصورة الرمزية
Ermin Trevisan
أفضل إجابة

I do not recommend your setup. A proper multi-domain deployment is a set-up with proxy server and SSL. How to do that is truly well documented, see for example here: https://www.odoo.com/forum/help-1/question/odoo-nginx-configuration-with-domain-name-and-db-filtering-for-multiple-domain-name-114775#answer-114777

0
الصورة الرمزية
إهمال
Sean Donovan
الكاتب

I followed your links, and what you recommend (https://www.odoo.com/forum/help-1/question/odoo-8-0-apache2-how-to-configure-a-proxy-from-an-url-to-a-specific-database-in-a-multi-database-setup-110545#answer-110604) doesn't work with v10 because dashes are no longer allowed in the database name.

Why install any webserver when Odoo can do it by adding a single line to the configuration file.

As for SSL - use Cloudflare with a "Flexible" certificate or "Full" with a server side Let's Encrypt cert.

Ermin Trevisan

Generally, it is definitely not a general use case or recommended procedure to rely on a freemium service for vital deployments if it is not necessary. Additionally I do not consider it as an elegant solution in a multi-tenant multi-client environment, which it is usually the case when using dbfilter.

Ermin Trevisan

As this obviously still gets attention, I have to confirm my critic. A Flexible Cloudflare-Certificate is not a solution as stated by Cloudflare themselves: https://support.cloudflare.com/hc/en-us/articles/200170416-What-do-the-SSL-options-mean-

and if you want to use Full encryption on Cloudflare, you have to show how to install and deploy a certificate on your server using your approach. My recommendation remain: stay away from such advise, set up a proper reverse proxy, meanwhile this is very easy to install and it does not justify to use such flawed methods as presented here.

هل أعجبك النقاش؟ لا تكن مستمعاً فقط. شاركنا!

أنشئ حساباً اليوم لتستمتع بالخصائص الحصرية، وتفاعل مع مجتمعنا الرائع!

تسجيل
المنشورات ذات الصلة الردود أدوات العرض النشاط
i need to connect odoo with my private domain
domains
الصورة الرمزية
الصورة الرمزية
1
يناير 19
7746
how to redirect a domain to odoo website? تم الحل
domains
الصورة الرمزية
الصورة الرمزية
الصورة الرمزية
2
يناير 24
14386
How to run multiple websites, stores, domains with Odoo 8
v8 store multiple multicompany domains
الصورة الرمزية
0
فبراير 16
5708
Configure different domains for multi companies
multicompany domains
الصورة الرمزية
0
أكتوبر 25
4383
Can I bring my web design agency to Odoo?
webservices domains
الصورة الرمزية
0
نوفمبر 24
1183
المجتمع
  • دروس
  • التوثيق
  • المنتدى
مصدر مفتوح
  • تحميل
  • جيت هاب "Github"
  • المشغل الآلي رنبوت
  • الترجمات
خدماتنا
  • استضافة أودو إس إتش
  • الدعم
  • الترقية
  • التطويرات المخصصة
  • التعليم
  • اعثر على محاسب
  • اعثر على شريك
  • كنْ شريكاً
معلومات عنا
  • شركتنا
  • أصول العلامة التجارية
  • اتصلْ بنا
  • الوظائف
  • فعاليات
  • بودكاست
  • مدونة
  • عملاء
  • قانوني • الخصوصية
  • الحماية
الْعَرَبيّة 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 ภาษาไทย Türkçe українська Tiếng Việt

أودو هو عبارة عن مجموعة من تطبيقات الأعمال مفتوحة المصدر التي تغطي جميع احتياجات شركتك، مثل: إدارة علاقات العملاء والتجارة الإلكترونية والمحاسبة والمخزون ونقاط البيع وإدارة المشاريع وما إلى ذلك.

ما يجعل من أودو مميزاً هو هدفه بأن يكون سهل الاستخدام للغاية ومتكاملاً تمامًا في الوقت ذاته.

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