Skip to Content
Odoo मेन्यू
  • Sign in
  • मुफ़्त में आज़माएं
  • ऐप्लिकेशन
    फ़ाइनेंस
    • अकाउंटिंग
    • इनवॉइसिंग
    • एक्सपेंस
    • स्प्रेडशीट (बीआई)
    • डॉक्यूमेंट्स
    • साइन
    सेल्स
    • सीआरएम
    • सेल्स
    • पीओएस शॉप
    • पीओएस रेस्टोरेंट
    • सब्सक्रिप्शन
    • रेंटल
    वेबसाइट
    • वेबसाइट बिल्डर
    • ई-कॉमर्स
    • ब्लॉग
    • फ़ोरम
    • लाइव चैट
    • ई-लर्निंग
    सप्लाई चेन
    • इन्वेंट्री
    • मैन्युफ़ैक्चरिंग
    • पीएलएम
    • परचेज़
    • मेंटेनेंस
    • क्वालिटी
    मानव संसाधन
    • कर्मचारी
    • रिक्रूटमेंट
    • टाइम ऑफ़
    • अप्रेज़ल
    • रेफ़रल
    • फ़्लीट
    मार्केटिंग
    • सोशल मार्केटिंग
    • ईमेल मार्केटिंग
    • एसएमएस मार्केटिंग
    • इवेंट
    • मार्केटिंग ऑटोमेशन
    • सर्वे
    सेवाएं
    • प्रोजेक्ट
    • टाइमशीट
    • फ़ील्ड सर्विस
    • हेल्पडेस्क
    • प्लानिंग
    • अपॉइंटमेंट
    प्रॉडक्टिविटी
    • डिस्कस
    • अप्रूवल
    • आईओटी
    • वीओआईपी
    • नॉलेज
    • WhatsApp
    तीसरे पक्ष के ऐप्लिकेशन Odoo स्टूडियो Odoo क्लाउड प्लेटफ़ॉर्म
  • इंडस्ट्री
    रीटेल
    • बुक स्टोर
    • क्लोदिंग स्टोर
    • फ़र्नीचर स्टोर
    • ग्रॉसरी स्टोर
    • हार्डवेयर स्टोर
    • टॉय स्टोर
    Food & Hospitality
    • बार और पब
    • रेस्टोरेंट
    • फ़ास्ट फ़ूड
    • Guest House
    • बेवरिज डिस्ट्रीब्यूटर
    • होटल
    रियल एस्टेट
    • Real Estate Agency
    • आर्किटेक्चर फ़र्म
    • कंसट्रक्शन
    • एस्टेट मैनेजमेंट
    • गार्ड्निंग
    • प्रॉपर्टी ओनर असोसिएशन
    कंसल्टिंग
    • अकाउंटिंग फ़र्म
    • Odoo पार्टनर
    • मार्केटिंग एजेंसी
    • लॉ फ़र्म
    • टैलेंट ऐक्विज़िशन
    • ऑडिट & सर्टिफ़िकेशन
    मैन्युफ़ैक्चरिंग
    • टेक्सटाइल
    • Metal
    • फ़र्नीचर
    • फ़ूड
    • Brewery
    • कॉर्पोरेट गिफ़्ट
    हेल्थ & फिटनेस
    • स्पोर्ट्स क्लब
    • आईवियर स्टोर
    • फिटनेस सेंटर
    • वेलनेस प्रैक्टिशनर
    • फॉर्मेसी
    • हेयर सैलून
    Trades
    • Handyman
    • आईटी हॉर्डवेयर और सपोर्ट
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    अन्य
    • Nonprofit Organization
    • एन्वायरमेंटल एजेंसी
    • बिलबोर्ड रेंटल
    • फ़ोटोग्राफी
    • बाइक लीजिंग
    • सॉफ़्टवेयर रीसेलर
    Browse all Industries
  • कम्यूनिटी
    सीखें
    • ट्यूटोरियल्स
    • दस्तावेज़
    • सर्टिफ़िकेशन
    • ट्रेनिंग
    • ब्लॉग
    • पॉडकास्ट
    शिक्षा को बढ़ावा दें
    • एजुकेशन प्रोग्राम
    • स्केल अप! बिजनेस गेम
    • Odoo के ऑफ़िस में आएं
    सॉफ़्टवेयर पाएं
    • डाउनलोड
    • वर्शन की तुलना करें
    • रिलीज़
    साथ मिलकर काम करें
    • Github
    • फ़ोरम
    • इवेंट
    • अनुवाद
    • पार्टनर बनें
    • Services for Partners
    • अपना अकाउंटिंग फ़र्म रजिस्टर करें
    सेवाएं पाएं
    • पार्टनर ढूंढें
    • अकाउंटेंट खोजें
    • सलाहकार की मदद लें
    • इम्प्लिमेंटेशन सेवाएं
    • कस्टमर रेफ़रेंस
    • सहायता
    • अपग्रेड
    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
You need to be registered to interact with the community.
All Posts People Badges
टैग (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
टैग (View all)
odoo accounting v14 pos v15
About this forum
Help

Two Domain Setup on Odoo V15 CE

Subscribe

Get notified when there's activity on this post

This question has been flagged
1 Reply
732 Views
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
Discard
Avatar
Altela
Best Answer

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
Discard
johnny doe
Author

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
Author

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
Author

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
Author

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

Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Sign up
कम्यूनिटी
  • ट्यूटोरियल्स
  • दस्तावेज़
  • फ़ोरम
ओपन सोर्स
  • डाउनलोड
  • Github
  • रनबॉट
  • अनुवाद
सेवाएं
  • Odoo.sh Hosting
  • सहायता
  • अपग्रेड
  • कस्टम डेवलपमेंट्स
  • शिक्षा
  • अकाउंटेंट खोजें
  • पार्टनर ढूंढें
  • पार्टनर बनें
हमारे बारे में
  • हमारी कंपनी
  • ब्रांड ऐसेट
  • संपर्क करें
  • नौकरियां
  • इवेंट
  • पॉडकास्ट
  • ब्लॉग
  • ग्राहक
  • लीगल • गोपनीयता
  • सुरक्षा
الْعَرَبيّة 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, बिज़नेस से जुड़े ऐप्लिकेशन का एक कलेक्शन है जो ओपन सोर्स पर आधारित है. इसमें आपकी कंपनी की हर ज़रूरत के लिए ऐप्लिकेशन हैं. जैसे, सीआरएम, ई-कॉमर्स, अकाउंटिंग, इन्वेंट्री, पॉइंट ऑफ़ सेल, प्रोजेक्ट मैनेजमेंट वगैरह.

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