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

Two Domain Setup on Odoo V15 CE

Langganan

Dapatkan notifikasi saat terdapat aktivitas pada post ini

Pertanyaan ini telah diberikan tanda
1 Balas
733 Tampilan
Avatar
johnny doe

I have setup odoo (including an ecommerce site) on a linode server (Odoo v15), community edition).  Within the Odoo setup I have also setup a second website (for a different region).  Each website has their own domain name.  Thanks to some help I got here I have the two websites working quite well together,  the 2 sites share a few pages (including the sale items etc) and things are good.  

I am just having one last issue I have not been able to resolve.  And, I think this issue is having a negative effect on people finding my second site (for the other region).  The situation is that if i go to a browser and enter the full address for the second site (with the 'www') it works - the second site comes up.  However, if I go to a browser and enter the address of the second site (without the 'www'), the browser actually takes me to my first site.  In other words, if I try to go to the second site via a browser (just by putting in the address) it will take me to the first site unless I specify the 'www' in the address.

I am not sure whether the problem is within my odoo setup or within any of my domain settings etc on the linode side.  Any ideas on what I might be able to do to resolve this issue?  Many thanks in advance.


1
Avatar
Buang
Avatar
Altela
Jawaban Terbai

Hello,

The cause of the problem you are facing may vary. From my experience, this can be from an incorrect setup in domain registrar which is having a domain redirection set up. If you are running multiple website in odoo (in a single database) you need to disable domain redirection from registrar and also point both domain using "A record" to your VPS Public IP address which in this case you are using linode.


Then, the second setup it is from Nginx configuration side inside /etc/nginx/sites-enabled. It is best to split each domain with different files. For example if you have website1.com and website2.com, then you need to make 2 files inside that folder. Inside, you need to define server_name parameter with and without www (this is important).


Here's the nginx example .conf that you can try :


https://drive.google.com/drive/folders/1TXtpqmzrG-WCcOi56dK6EprRy1OUVWIG?usp=sharing


hope this helps,


Altela (www.altelasoftware.com)

0
Avatar
Buang
johnny doe
Penulis

Hello and thank you very much for your thorough reply.

When you say to disable domain redirection - is that something that would have been set within the domain setup on linode? If so, I do not see anything there that would redirect (although not even sure where that would necessarily be defined). I do have "A record" set within the Linode setup for the domain which specifies the IP address.

The Nginx configuration might be more interesting (and perhaps has something incorrect). within /etc/nginx directory I do not have a system-enabled directory, however, I do have a sites-enabled directory (and there really isn't anything in it. Within the /etc/nginx/conf.d directory I do have files for each of the sites (website1.ca.conf and website2.net.conf). Each of these files do contain references to their respective site name (eg. the website1 file has lines such as root var/www/website1.ca, server_name www.website1.ca).

johnny doe
Penulis

i did forget to mention that the letsencrypt ssl certificate lines in each file (website1 and website2) both reference website1 in the line. In other words the letsencrypt ssl certificate lines in the website2 file do reference website 1.

Altela

My bad, you are correct it is sites-enabled and not system-enabled. i will edit my answer

The domain redirection most commonly handled in registrar site (where you are purchasing domain) if there are no domain redirection set then i think its already correct.

For Nginx part i usually add the configuration files for each website in /etc/nginx/sites-enabled. The point we set nginx is to route the traffic for which domain is accessing to which website. So at the end we will expect the route to be come like : user typing domain in web browser -> registrar directing domain to "A Record" (VPS IP address) -> Nginx directing user to which website -> Website will show in the browser

i think there's more to do in your Nginx site to do some redirecting. You can leave SSL at the end once all is well accessed

johnny doe
Penulis

I now have a problem. I replaced my nginx configuration files for the two sites with the two files you sent for website1 and website2 (of course I changed the lines withing the file to reflect my website names). When I did this and rebooted the server neither of the websites would work. I therefore put the configuration files back to what they were and rebooted, however, I now cannot get either site to come up. when trying to call up the site I get message that the site can't be reached and the site refused to connect.

So now my site is down entirely. I have gone back through many times to ensure the files were returned to what they were and rebooted but cannot get anything working.

johnny doe
Penulis

No worries, I did manage to get it back up and working. I do still have the issue with website2.net actually opening website1.ca and www.website2.net actually opening website2.net. Have been talking to linode people about it as well. They think there must be something within my odoo setup that is causing the problem. One other question I have for your if you happen to notice - how can I fully disable the 2nd website on my odoo setup (website2) without entirely deleting it from the system. Would maybe like to just turn it off for now.

Altela

i think you can go to website list and then check one of them and archieve, it will deactivate the website and can be activated later if you unarchieve it

Menikmati diskusi? Jangan hanya membaca, ikuti!

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

Daftar
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