Odoo Help


This community 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.


website module and Multi-DB

Mohamed Hagag
on 2/3/14, 6:30 PM 4,298 views


I found that we can have different websites for different DBs, but I can't find how to access a DB specific website.

If I have Demo DB and XYZ DB what URL should I use to access Demo DB's website and what URL can I use to access XYZ DB's website.

I tried URL argument db=XYZ but it have no effect except in /web/login controller .

Also I tried /page/?db=XYZ and /page/website.homepage?db=XYZ but not working also.

Any Ideas ?


On 2/4/14, 10:01 AM

Start you server with --db-filter=^%d$

I want all websites to be accessible through URLs not only one website available.

Mohamed Hagag
on 2/4/14, 10:15 PM

Starting your server like this will allow you to use database names as subdomains eg. demodb.hostname and XYZ.hostname. If you want seperate URL's for each database, you might have look at setting up proxies with nginx or apache.

on 2/5/14, 12:35 AM

Yes it's working now fine, after configuring the DNS and apache.

Mohamed Hagag
on 2/5/14, 11:17 AM

Mohamedhagag, how did you configure DNS and apache to get it to work? I am facing the same issues.

Harold Poku
on 4/17/14, 11:57 AM

it's configured with wildcard sub domain *

Mohamed Hagag
on 4/29/14, 7:50 AM


What about if I need domians instead sub domains. Where I can find more documentation about db-filter?

I need:

www.abc.com => db = abc
www.pqs.com => db=pqs

Thanks in advance !

I found the solution in this link: https://www.odoo.com/forum/Help-1/question/Domain-based-db-filter-6583 All works well with: openerp-server --db-filter='^%h$'

Sonia Lizette Bernabé Bustos
on 6/7/14, 3:56 PM

But I have an error, all my images does not work with this change. Any ideas. I can upload my images as links in others folder or site but I am curios and I will try to find the right solution. :)

Sonia Lizette Bernabé Bustos
on 6/7/14, 4:01 PM

I found the error: When I changed the name of DB to match with the instruction --db-filter='^%h$' does not change the folder's name where saves ODOO all my files (/home/admin/.local/share/OpenERP/filestore), only change this name (old_db_name) to (new_db_name) and now all works well again.

Sonia Lizette Bernabé Bustos
on 6/7/14, 4:19 PM

wow you solve many questions of mine, but i was wondering, what if i want a domain (mine) and subdomains (my clients)?? the only fast solution, and also kind of dumb, is to use --db-filter='^%d$' and name my db "www" so it will work but that is kind of dumb. I am just wondering if someone answers or not it doesnt matter. Have a nice day!

on 6/25/14, 11:34 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

3 follower(s)


Asked: 2/3/14, 6:30 PM
Seen: 4298 times
Last updated: 3/16/15, 8:10 AM