This question has been flagged
1 Reply
5839 Views


I have an instance (Ubuntu 14.04) in Amazon EC2

I have 3 domain names (in Big Rock)

like www.mycompany.com

      sub1.mycompany.com

      sub2.mycompany.com


And 3 Databases 

like mycompany

      sub1

      sub2

I have to redirect the domain name as

     www.mycompany.com : Home page of db-mycompany

     sub1.mycompany.com : Home page of db-sub1

     sub2.mycompany.com : Home page of db-sub2

     *redirect with out uname or pwd (direct to home page)

Avatar
Discard
Best Answer

Check for db-filter using google and forum search. This post might be helpful: https://www.odoo.com/fr_FR/forum/help-1/question/how-to-set-database-filter-on-sub-domain-for-odoo-website-using-apache-web-server-64935     

This might also help for a better understanding:https://www.odoo.com/fr_FR/forum/how-to/installation-12/how-do-i-use-openerp-with-multiple-domains-on-single-server-1814

Avatar
Discard
Author

Thanks #Ermin But lemme know is it mandatory to install apache.Actually im hosting in aws.So can we do this with out installing apache ?

You'll need a proxy server, for many different reason (such as port redirection from 8069 to 80/443 for example), but also for this purpose. This has nothing to do with AWS (we are also on AWS). There are several options for proxy servers: Apache, nginx are the most popular. Actually we are testing caddy server (www.caddyserver.com) because it seems to be quite easy and has inbuilt let's encrypt certification and automatic renewal. Please upvote my answer and check it as solved.

Author

Can we solve it by editing in odoo-server.conf file ?

You might be able to achieve it without a proxy server by adding the proper host names in the host file together with the dbfilter parameter in the conf file (which is anyway needed, also if you deploy a proxy server). Check my amended answer.