Maurice
I have a custom setup for a site, that makes a site the default nginx server config (server_name _;
). There is no other default server set. I don't use Ploi aliases for this reason. Now, when I create a tenant, it will be loaded before the site server config (stored in include /etc/nginx/ploi/domain/before/*;
) and thus making the tenant the default server and ignoring the given server_name
, because nginx seems to use the first server
block it finds as the default server, if none has been defined before. This prevents the main site config from being executed.
My question is: would it be possible to load tenants after the main site config, instead of before? Or make it configurable per tenant? I am not sure if there would be other side effects when loading tenants after the main config.
The issue in my case is that I wanted to use tenants to redirect a whole domain to another domain, but instead any domain that pointed to this site got redirected and not the domain defined in the tenant (the site uses about 60 domains). I create tenants using the API and update the nginx config according to our system, where I have stored a list of all domains and redirections.
Dennis
Hello! 👋
Thank you for taking the time to share your feature suggestion with us. While we currently don't have plans to implement this specific feature, we appreciate your input and will keep it on our radar for future consideration.
If this suggestion gains more support from our user community, we'll certainly revisit the idea. In the meantime, you may find that you can achieve similar results through manual setup, if applicable to your situation.
Alternatively, if applicable, you could consider adding this request to the Ploi roadmap.
Thanks again for your contribution to our ongoing efforts to improve Ploi!
Loading tenants before site config creates conflicts
-
Dennis moved item to board Closed
7 months ago -
Dennis moved item to board Under review
1 year ago -
Maurice moved item to project Site Level Requests
1 year ago -
Maurice created the item
1 year ago