Skip to Content
Menu
This question has been flagged
5 Replies
3279 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.

Avatar
Discard
Best Answer

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

Avatar
Discard
Author

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

There is no need for that when using dbfilter.

Author Best Answer

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

Avatar
Discard
Best Answer

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.

Avatar
Discard
Author

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.