Skip to content

Instantly share code, notes, and snippets.

@inspiretk
Last active August 17, 2018 11:37
Show Gist options
  • Save inspiretk/46281a829c10d6561498ee373b74ecb4 to your computer and use it in GitHub Desktop.
Save inspiretk/46281a829c10d6561498ee373b74ecb4 to your computer and use it in GitHub Desktop.
# create database based on yoour domain eg domain is thuani.com make database name thuani_com
# if domain is thuani.com.au make database name thuani_com_au
# then follow below steps
nano /etc/odoo.conf
# find dbilfter, and put ^%h$ in it.
dbfilter = ^%h$
# restart your odoo. eg sudo service odoo-server restart
###### misc references below ####
Need to deploy with --db-filter
https://www.odoo.com/documentation/10.0/setup/deploy.html
/etc/odoo.conf
# show only databases with names beginning with 'mycompany'
[options]
dbfilter = ^mycompany.*$
# Show only databases matching the first subdomain after www: for example the database "mycompany" will be shown if the incoming request was sent to www.mycompany.com or mycompany.co.uk, but not for www2.mycompany.com or helpdesk.mycompany.com.
[options]
dbfilter = ^%d$
# first subdomain (%d)
nano /etc/odoo.conf
# find debilfter, and put ^%h$ in it.
[options]
dbfilter = ^%h$
dynamically injected hostname (%h)
# use the --no-database-list startup paramater to prevent listing your databases.
# https://www.odoo.com/documentation/10.0/setup/deploy.html#security
http://robertozanardo.com/blog/2017/10/06/testing-odoo-11-port-80-with-multi-web-site-windows-server/
https://www.odoo.com/forum/help-1/question/odoo-nginx-configuration-with-domain-name-and-db-filtering-for-multiple-domain-name-114775
https://www.rosehosting.com/blog/install-multiple-odoo-instances-on-a-single-machine/
https://odoo-saas-tools.readthedocs.io/en/10.0/setup/install.html
https://odoo-saas-tools.readthedocs.io/en/10.0/
http://it-projects-llc.github.io/odoo-saas-tools/getting-started/
https://github.com/it-projects-llc/odoo-saas-tools/tree/10.0
https://www.google.com.au/search?safe=active&rlz=1C1CHBF_enAU809AU809&ei=lxp0W9ubApOO8gX_yrG4BA&q=odoo+11+nginx+--dbfilter+multiple+domain&oq=odoo+11+nginx+--dbfilter+multiple+domain&gs_l=psy-ab.3...1670246.1672612.0.1672797.16.8.0.0.0.0.0.0..0.0....0...1c.1.64.psy-ab..16.0.0....0.wK2xojEerk4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment