Odoo Help


DB Redirecting For Domain & Sub Domain ?

on 1/14/16, 12:09 AM 1,608 views

I have an instance (Ubuntu 14.04) in Amazon EC2

I have 3 domain names (in Big Rock)

like www.mycompany.com



And 3 Databases 

like mycompany



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)


Ermin Trevisan

--Ermin Trevisan--
| 6 5 7
Walchwil, Switzerland
--Ermin Trevisan--

Ermin Trevisan
On 1/14/16, 1:54 AM

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 ?

on 1/14/16, 2:03 AM

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.

Ermin Trevisan
on 1/14/16, 3:17 AM

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

on 1/14/16, 3:25 AM

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.

Ermin Trevisan
on 1/14/16, 4:42 AM

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 1/14/16, 12:09 AM
Seen: 1608 times
Last updated: 1/14/16, 2:00 AM