Community mailing list archives

community@mail.odoo.com

Re: Muliple Odoo Website on single port

by
Ermin Trevisan
- 05/23/2016 02:45:44
Andi, I tried to understand your answer.
First I stripped of anything I think has nothing to do with the topic.
This is what I ended up with:

On 20.05.2016 10:22, Andreas Becker wrote:

> ServerName dev.mydomain.de 
> ServerAlias www.dev.mydomain.de 
> 
> RewriteCond %{HTTP_HOST} !^dev.mydomain.de
> RewriteRule ^/(.*)$ https://dev.mydomain.de/$1 [R=301,NE,L]

> ProxyPreserveHost On
> ProxyPass /longpolling/        http://localhost:8072/longpolling/ retry=0
> ProxyPassReverse /longpolling/ http://localhost:8072/longpolling/ retry=0
> ProxyPass /                    http://localhost:8069/ retry=0
> ProxyPassReverse /             http://localhost:8069/ retry=0
> 
> 
> 
> ======== // ===========
> 
> site2.mydomain.de.conf - will look like that:
> ----------
> 

> ServerName site2.mydomain.de 
>     ServerAlias www.site2.mydomain.de 

> RewriteCond %{HTTP_HOST} !^site2.mydomain.de 
> RewriteRule ^/(.*)$ https://site2.mydomain.de/$1 [R=301,NE,L]


> ProxyPass /longpolling/        http://localhost:8072/longpolling/ retry=0
> ProxyPassReverse /longpolling/ http://localhost:8072/longpolling/ retry=0
> ProxyPass /                    http://localhost:8069/ retry=0
> ProxyPassReverse /             http://localhost:8069/ retry=0
> 
> in etc/odoo/mydomain-server.conf
> 
> you should have something like:
> 
> # Is it behind a HTTP reverse proxy?
> proxy_mode = 1
> 
> dbfilter=dev.mydomain.de 

And now I'm clueless. Why is this supposed to work concerning zoya's
problem? If I understand it correctly, you just rewrite and redirect to
dev.mydomain.de and site2.mydomain.de respectively and everything ends
up in database dev.mydomain.de.
What makes Odoo understand that it has to properly show website
https://dev.mydomain.de or https://site2.mydomain.de respectively?

-- 
twanda AG
Ermin Trevisan
Artherstrasse 19
CH-6318 Walchwil
T    +41 41 758 1515
M    +41 79 208 7373
E    trevi@twanda.com
www.twanda.ch
www.twanda.ch/page/restaurant