-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to configure subdomain for multitenant installation #50
Comments
when you say that you are using decidim.test, you mean literally? .test domains are for... testing. If that's the case you need to add in your As a general case, you need to point any domain or subdomain used for a tenant to the server you are using, then go to anyworkingdomain.tld**/system**, log in there and configure the other tenant, you need to add the full subdomain there as the name of the tenant host. |
Yes, domain is .test because is a local domain I use to learn how decidim works :) Thanks for your reply: i've added org2.decidim.test and org1.decidim.test to |
Clearly nginx is not reaching passenger (or puma), try to post here the nginx configuration |
After some tests now i've this environment: one domain decidim.test with two organisations (decidim.test and org2.decidim.test). I can login in /system page and in decidim.test tenant; when i try to login in org.decidi.test there's an Nginx error: "If you see this page, the nginx web server is successfully installed and working. Further configuration is required" This is my mod-http-passenger.conf
Here nginx.conf
And here my sites-enabled/decidim.conf
|
I'd say you have the problem in your decidim.conf file, try to use "_" and "default_server" in it:
|
I've tried to edit decidim.conf file but nginx can't be restarted with the following error
The problem is with line |
the remove the other configuration file, you cannot have to defintions of default_server as the message stands |
Hello,
thanks, for your guide, it's great. I've just one doubt: how should I configure my installation to support more than one organisation?
Now my domain is decidim.test and, if I add an organisation with host decidim.test and open that page, I've that organisation login form. When I add a second organisation I should use a different host (org2.decidim.test) but obviously it doesn't work and at that page I just see an nginx error. Which is the correct way to configure multi-tenancy? Which are the files I should edit?
Thanks
The text was updated successfully, but these errors were encountered: