Skip ke Konten
Odoo Menu
  • Login
  • Uji coba gratis
  • Aplikasi
    Keuangan
    • Akuntansi
    • Faktur
    • Pengeluaran
    • Spreadsheet (BI)
    • Dokumen
    • Tanda Tangan
    Sales
    • CRM
    • Sales
    • POS Toko
    • POS Restoran
    • Langganan
    • Rental
    Website
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Rantai Pasokan
    • Inventaris
    • Manufaktur
    • PLM
    • Purchase
    • Maintenance
    • Kualitas
    Sumber Daya Manusia
    • Karyawan
    • Rekrutmen
    • Cuti
    • Appraisal
    • Referensi
    • Armada
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Acara
    • Otomatisasi Marketing
    • Survei
    Layanan
    • Project
    • Timesheet
    • Layanan Lapangan
    • Meja Bantuan
    • Planning
    • Appointment
    Produktivitas
    • Diskusi
    • Approval
    • IoT
    • VoIP
    • Pengetahuan
    • WhatsApp
    Aplikasi pihak ketiga Odoo Studio Platform Odoo Cloud
  • Industri-Industri
    Retail
    • Toko Buku
    • Toko Baju
    • Toko Furnitur
    • Toko Kelontong
    • Toko Hardware
    • Toko Mainan
    Makanan & Hospitality
    • Bar dan Pub
    • Restoran
    • Fast Food
    • Rumah Tamu
    • Distributor Minuman
    • Hotel
    Real Estate
    • Agensi Real Estate
    • Firma Arsitektur
    • Konstruksi
    • Estate Management
    • Perkebunan
    • Asosiasi Pemilik Properti
    Konsultansi
    • Firma Akuntansi
    • Mitra Odoo
    • Agensi Marketing
    • Firma huku
    • Talent Acquisition
    • Audit & Sertifikasi
    Manufaktur
    • Tekstil
    • Logam
    • Perabotan
    • Makanan
    • Brewery
    • Corporate Gift
    Kesehatan & Fitness
    • Sports Club
    • Toko Kacamata
    • Fitness Center
    • Wellness Practitioners
    • Farmasi
    • Salon Rambut
    Perdagangan
    • Handyman
    • IT Hardware & Support
    • Sistem-Sistem Energi Surya
    • Pembuat Sepatu
    • Cleaning Service
    • Layanan HVAC
    Lainnya
    • Organisasi Nirlaba
    • Agen Lingkungan
    • Rental Billboard
    • Fotografi
    • Penyewaan Sepeda
    • Reseller Software
    Browse semua Industri
  • Komunitas
    Belajar
    • Tutorial-tutorial
    • Dokumentasi
    • Sertifikasi
    • Pelatihan
    • Blog
    • Podcast
    Empower Education
    • Program Edukasi
    • Game Bisnis 'Scale Up!'
    • Kunjungi Odoo
    Dapatkan Softwarenya
    • Download
    • Bandingkan Edisi
    • Daftar Rilis
    Kolaborasi
    • Github
    • Forum
    • Acara
    • Terjemahan
    • Menjadi Partner
    • Layanan untuk Partner
    • Daftarkan perusahaan Akuntansi Anda.
    Dapatkan Layanan
    • Temukan Mitra
    • Temukan Akuntan
    • Temui penasihat
    • Layanan Implementasi
    • Referensi Pelanggan
    • Bantuan
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Dapatkan demo
  • Harga
  • Bantuan

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

  • CRM
  • e-Commerce
  • Akuntansi
  • Inventaris
  • PoS
  • Project
  • MRP
All apps
Anda harus terdaftar untuk dapat berinteraksi di komunitas.
Semua Post Orang Lencana-Lencana
Label (Lihat semua)
odoo accounting v14 pos v15
Mengenai forum ini
Anda harus terdaftar untuk dapat berinteraksi di komunitas.
Semua Post Orang Lencana-Lencana
Label (Lihat semua)
odoo accounting v14 pos v15
Mengenai forum ini
Help

odoo13ce, multi website, second website domain (site2.com) cannot handle alias (www.site2.com)

Langganan

Dapatkan notifikasi saat terdapat aktivitas pada post ini

Pertanyaan ini telah diberikan tanda
aliasmulti-website
3 Replies
6321 Tampilan
Avatar
Nanyo Nanev

Hi,

I have got odoo13 community edition.
Single DB.
2 companies and 2 websites publicly accessible using Nginx reverse proxy. Each site has got public domain and DV wildcard SSL certificate installed and working correctly.
The first site is configured as site1.com and has no issues to respond if the request is to site1.com or www.site1.com.
The second site is configured as site2.com (no www.) and has no issues to respond to the request to site2.com, but if the request is www.site2.com it redirects the web user to site1.com!
By saying configured I mean Settings/Websites/Domain name = site1.com or site2.com
It works for site1.com - you can request site1.com or www.site1.com and the same website will open - website 1.
The same config for site2.com seems to work only if you request exactly what is written in the field of the domain name - site2.com. I had a play and amended the field from site2.com to www.site2.com. Yes, now you can open the website 2 only if you request www.site2.com. The site2.com will open website 1.
There is no option to put site2.com and www.site2.com, together in the same domain name field as all request will go to the website 1 only, i.e. website 2 cannot be reached.
Both domain DNS services are configured as follows:
site1.com -> a.a.a.a
www.site1.com is a cname to site1.com
site2.com ->a.a.a.a
www.site2.com is a cname to site2.com

As a result, the ping to each is leading to the same IP:
ping site1.com -> a.a.a.a
ping www.site1.com -> a.a.a.a
ping site2.com -> a.a.a.a
ping www.site2.com -> a.a.a.a

As expected the IP a.a.a.a is publicly accessible on port 80/443.

Nginx configuration for each block (virtual host) is identical and checked.

Do you know how can I let the web users go to the website 2 (site2.com) regardless of what they type - site2.com or www.site2.com?

Thank you in advance!

1
Avatar
Buang
zahid

I have same setting with 13CE. one database , two domains . domai1.com working fine domain2.com points to database selector.
How did you manage to get multi website/domain working ?

Nanyo Nanev
Penulis

Odoo v.13 and v.14 can handle the first domain domain1.com with both domain1.com and the subdomain www.domain1.com, without any issues. The second domain (and any other on top) may have only one pointer - domain2.com or www.domain2.com, but not both. The result is:
domain1.com - resolves and opens the expected page
www.domain1.com - resolves and opens the desired page
domain2.com - if set up - resolves and opens the desired page, but the subdomain www.doamin2.com doesn't work
www.domain2.com - if set up - resolves and opens the desired page, but the domain domain2.com doesn't work

The experience with domains 3, 4 and so on is the same as per domain2.com

I have not received any help or proper communication from Odoo support at that time. My conclusion is multidomain is initially designed to serve a single company like:
domain1.com - works fine
www.domain1.com - works fine
any other subdomain like www will work fine as:
eshop.domain1.com - it is like an additional domain, but you do not need www.eshop.domain1.com as only the subdomain main name is enough.
intranet.domain1.com

It is advertised as multidomain and multi-company and generally speaking is true, but you cannot add two independent websites and to expect to request the content via www or without it for both.

I didn't play with the latest version 15 yet. And I do not plan to do it in the scope of the webserver.
I spun a VM with WP for the regular websites, where I need www. and the main domain. The eshop subdomain only can live on the Odoo.

Back to the question of why you can see the database selector? The reason is you didn't hide it. If you do it the problematic record will open the webpage of your domain1.com.

Avatar
Kazim Kazim
Jawaban Terbai

Hi @Nanyo, i have an issue with multi website domains. So when i define my second domain it redirects back to db selector and not the website. how did you manage to configure the multiple domains please

1
Avatar
Buang
Nanyo Nanev
Penulis

Sorry, I didn't come here for a while. Please have a look at the answer I gave to zahid

Avatar
Ermin Trevisan
Jawaban Terbai

 You can use a CNAME DNS entry to link the subdomain www to a domain, or you can use a permanent redirect (301) in your reverse proxy. With nginx such a redirect looks like this:

server { 
# Redirect non-www to www
server_name example.com;
return 301 $scheme://www.example.com$request_uri;

with Caddy Server such a redirect looks like this:

example.com {
    redir https://www.example.com{uri}
}

About which way is to prefer (especially from a SEO perspective), you may find many interesting readings in the internet. When using redirects, you avoid the problem of indexing of both domains by search engines.


0
Avatar
Buang
Nanyo Nanev
Penulis

Hi Ermin,

Thank you for your reply! If you read again the very first post you will see the CNAME DNS game has been played already. The reverse proxy at NGINX has been configured as you suggested before the first post. You are correct for the very first website in a multi-website configuration. The problem is with the second and next websites. The very first website works with the www subdomain and the domain only. Odoo interface will allow you to enter only one domain or subdomain (www), but not both. Apparently, it is not an issue for the first website. I decided I am not fluent and checked with two of the Gold partners. I have sent them the NGINX config and revealed the real domains so they checked the CNAME for both domains.

The only one solution is to have a "translator" before the reverse proxy and to convert the incoming request to the expected from Odoo (exactly what you put in the name of the domain at the Odoo interface). This translator can be anything, but the load balancer would do the job. I bet all customers at Odoo.com portal are welcomed by load balancers and they "translate" the request of www subdomain to the domain only.

I am happy to share in a personal message with you the DNS config and NGINX config. Also happy to jump into a screen sharing session with you. I appreciate you may know something that others and I do not.

I would be curious to test it with Odoo v15. I doubt it would be resolved as this is an isolated case and if you intend to have different domains it is highly likely to have load balancers with multiple apps and PostgreSQL boxes.

Ermin Trevisan

Using permanent redirects in the reverse proxy, you only send one hostname per domain to Odoo (either with or without www, upon your decision).

Ermin Trevisan

In my example Odoo will only receive requests for www.example.com, requests without www will be converted to www.example.com before it reaches Odoo.

Ermin Trevisan

To make it very clear: After the redirect, there is only one server_name (in nginx-language) left, you do not proxy both www and non-www domains afterwards.

Avatar
Nanyo Nanev
Penulis Jawaban Terbai

I have tested the same case in Odoo v14. Same results. It is not an issue. It is by design. If you want to have multiple websites and to have their www subdomain and their domain (www.domain.com + domain.com) you need a load balancer(s), where you can describe the rules and push the "correct" request to Odoo's NGINX.
I will take it as resolved (in a hard way)!

0
Avatar
Buang
Ermin Trevisan

I can not see any relation to load balancers.

Menikmati diskusi? Jangan hanya membaca, ikuti!

Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!

Daftar
Post Terkait Replies Tampilan Aktivitas
How to use the Odoo theme in multi-clone websites?
multi-website
Avatar
0
Mar 24
1683
Multi company/multi website leading to same website Diselesaikan
multi-website
Avatar
Avatar
2
Des 23
5240
Questions on setting Odoo up for 2 websites on Linode Server (odoo v15)
multi-website
Avatar
Avatar
Avatar
2
Mar 23
2806
Alias Accepts Emails From ?
alias
Avatar
0
Des 21
4531
Unable to create second website
multi-website
Avatar
1
Mar 20
2473
Komunitas
  • Tutorial-tutorial
  • Dokumentasi
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Terjemahan
Layanan
  • Odoo.sh Hosting
  • Bantuan
  • Peningkatan
  • Custom Development
  • Pendidikan
  • Temukan Akuntan
  • Temukan Mitra
  • Menjadi Partner
Tentang Kami
  • Perusahaan kami
  • Aset Merek
  • Hubungi kami
  • Tugas
  • Acara
  • Podcast
  • Blog
  • Pelanggan
  • Hukum • Privasi
  • Keamanan
الْعَرَبيّة 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

Odoo adalah rangkaian aplikasi bisnis open source yang mencakup semua kebutuhan perusahaan Anda: CRM, eCommerce, akuntansi, inventaris, point of sale, manajemen project, dan seterusnya.

Mudah digunakan dan terintegrasi penuh pada saat yang sama adalah value proposition unik Odoo.

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