Odoo Help

Welcome!

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.

0

multi domaine with selection automatic odoo database

By
KIBINDE OMBIONYO Franck Landry
on 12/1/16, 5:16 AM 124 views

i have installed odoo9, installed apache2, created two vhost:

firstdomain.com:

ServerName firstdomaine.com

ServerAlias www. firstdomaine.com

ServerAdmin admin@firstdomaine.com

DocumentRoot /var/www/html

ProxyRequests Off

ProxyPreserveHost On

ProxyPass / http:// firstdomaine.com:8069/

ProxyPassReverse / http:// firstdomaine.com:8069/

ErrorLog ${APACHE_LOG_DIR}/error.log

CustomLog ${APACHE_LOG_DIR}/access.log combined

<Proxy *>

Order deny,allow

Allow from all

</Proxy>

it is the same synthaxe as the seconddomain.com (with different port).

the problème is that when i enter firstdomain.com, the result shows the two databases i have created before, it does't select one automatically as espected.

i expecte any one to help me solve that problème

Thank's.

0
Laurent OLIVIER
On 12/1/16, 7:28 AM

I guess that you have only one user "odoo" owner of the two databases

For the configuration you want, one way is to create one  user (unix and postgresql) per database.

Eg :

domain: domain1.com

user: odoo1

db : db1 ( owner: odoo1)

port 8069


domain : domain2.com

user: odoo2
db : db2 ( owner odoo2)
port 8169

that's the configuration i want to do, but how can i spécify that in my configuration?

1. create another user odoo1 in command line(ligne de commande) i think?

2. how can i create db1 with user odoo and db2 with user odoo2?

3.how can i spécify diferent port with the specific database?

thank's

KIBINDE OMBIONYO Franck Landry
on 12/1/16, 7:46 AM

There is no need for that when using dbfilter.

Ermin Trevisan
on 12/1/16, 7:53 AM
0

thank you for the documention, but i have my odoo-server.conf file:

• Odoo-server.conf configuration

[options]; This is the password that allows database operations:

admin_passwd =

db_host = False

db_port = False

db_user = odoo

db_password = False

addons_path = /usr/lib/python2.7/dist-packages/odoo/addons

[options]

logfile = /var/log/odoo/odoo-server.log

addons_path=/odoo/odoo-server/addons,/odoo/custom/addons

xmlrpc_port = 8069

xmlrpcs_port = 8090

proxy_mode = True

dbfilter = ^%h$

the parameter dbfilter and xmlrpcs_port does't not work.

i don't know how can i spécify example dbfilter = firstdomain.com,  dbfilter = seconddomain.com and spécify the port to the second domaine.

thank's

0

Ermin Trevisan

--Ermin Trevisan--
3546
| 6 3 7
Walchwil, Switzerland
--Ermin Trevisan--


Ermin Trevisan
On 12/1/16, 7:50 AM

1.

ProxyPass / http:// firstdomaine.com:8069/
ProxyPassReverse / http:// firstdomaine.com:8069/

should be http://yourlocalipaddress:8069 or http://localhost:8069 or similar

2.

if you use dbfilter = ^%h$ then the names of your databases should be "firstdomaine-com" and "seconddomaine-com" respectively.

Please i need a full configuration of two or three domains with apache. (odoo9) in ubuntu16.04. How can i configure odoo-server.conf file, ports.conf file, and vhosts file or other file.

i'm still a beginer in odoo, i would like to understand the operation of multi domaine in odoo with apache technologie in particular and put it into practice.

thank's.

KIBINDE OMBIONYO Franck Landry
on 12/2/16, 2:31 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

2 follower(s)

Stats

Asked: 12/1/16, 5:16 AM
Seen: 124 times
Last updated: 12/1/16, 7:53 AM