Automatically choose database based on subdomain
I'm using Odoo + Nginx as a reverse SSL proxy. I followed this guide to get it setup:
I'd like to type in somessubdomain.example.com and have it redirected to the login page for that given database. In the background this should be happening:
When I request:
This should be returned https://somessubdomain.example.com
And in the background I would like this to happen: 127.0.0.1:8069/web?db=somesubdomain
On OpenERP 7 + Apache2 I know how to set this up , but I'm not sure how to do this with Nginx.
Someone refered me this guide but is not helping much: https://www.odoo.com/forum/help-1/question/domain-based-db-filter-6583
Hope you understand my question. Your help would be much appreciated.