Odoo Help

0

0
3 Answers
2
Avatar

Ermin Trevisan

--Ermin Trevisan--
15625
| 7 6 9
Walchwil, Switzerland
--Ermin Trevisan--


Ermin Trevisan
23/11/17 05:23

You do need the module dbfilter_from_header in order to set up multi website theme properly. My configuration:

- odoo.conf: disable dbfilter, add dbfilter_from_header as a serverwide module

- proxy virtual host definition (in my example it is my caddyfile for the Caddy Webserver, but you can easily adapt it by adding the request header X-Odoo-dbfilter for your use case):

mydomain1.ch, www.mydomain1.ch {
  proxy / http://192.168.xxx.xxx:8069 { # Fill in the correct port..
    transparent
    header_upstream X-Odoo-dbfilter mydatabase
    }

  gzip
  log /var/log/caddy/mydomain1.access.log
  errors /var/log/caddy/mydomain1.error.log

}
 
mydomain2.ch, www.mydomain2.ch {
  proxy / http://192.168.xxx.xxx:8069 { # Fill in the correct port..
    transparent
    header_upstream X-Odoo-dbfilter mydatabase
    }

  gzip
  log /var/log/caddy/mydomain2.access.log
  errors /var/log/caddy/mydomain2.error.log

}
0
Lucas Huber
23/11/17 07:27

What is also working now is a configuration with to separate nginx conf files without dbfilter_from_header.
But this works only with one database. For multi DB and multi website you need
dbfilter_from_header.

server.conf

dbfilter=mydatabase


1 Comment
twanda AG, Ermin Trevisan
23/11/17 08:13

Ok, in my case I have multiple databases per instance, so this is why I use dbfilter_from_header.

Ask a Question
Writer
Keep Informed
2 follower(s)
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.

Register
Odoo Training Center

Access to our eLearning platform and experience all Odoo Apps through learning videos, use cases and quizzes.

Test it now