Hosting two sites on one IP (odoo)

I have 2 domains on my linode account (same IP address) - siteone.com and sitetwo.com. I am running an odoo site and within odoo I have both siteone.com and sitetwo.com defined (they are slightly different in terms of content).

Based on information and assistance I gained via the Linode site, I have been able to set this up and it functions almost as I need. It is close but not quite working as needed. In particular, from a web browser if you go to either www.siteone.com or siteone.com the browser brings up the proper siteone.com content. In terms of bringing up the sitetwo.com content from a browser it works fine if you specify www.sitetwo.com, however, if you specify the simplified sitetwo.com it actually brings up the siteone.com content.

Previously, I had tried using cname records to try and get any request for sitetwo.com to actually direct to www.sitetwo.com so that the correct content would come up, however, was unsuccessful. In the past also, I recall Linode staff directing me to some odoo documentation and odoo support, however, none of that has proven to be useful for me to resolve. At this point, I am hoping that someone might be able to help me given the description I have outlined above. The good news is you can bring up the sitetwo.com content by including the www in the address, however, I really need it to go to the sitetwo content if someone just enters the address as sitetwo.com. It seems that I am so close but just not quite. Is there a simple or any solution here?

If anyone has had such experience and perhaps used odoo to setup 2 similar but separate sites perhaps you would be able to suggest a solution that would work. I appreciate any assistance or direction that could be suggested. Thank you.

2 Replies

I saw a couple Odoo forum posts which relate to this which may be helpful (if you have not already seen them):

https://www.odoo.com/forum/help-1/can-we-run-2-websites-in-a-single-odoo-server-for-2-different-domain-names-120717

https://www.odoo.com/forum/help-1/odoo-multiple-instances-through-single-ip-68074

They both give a moderate amount of advice on the same question, and also give links to outside resources with more granular steps needed to get this set up.

Hope that helps!

-Micah

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct