we offer some Web tools to customers, and we are creating a subdomain for each one. We would need to create a quota for each subdomain for the disk and traffic. We have tried to find the way to do it without success. Is there any way to do it?
I don’t know of a way to have multiple quotas for various websites within one Virtual Server (and it’s Sub-Servers).
However, you can make a sub-domain as a standalone Virtual Server.
So if you’re domain is example.com, you can make one Virtual Server using test1.example.com with one quota, and an entirely different Virtual Server using test2.example.com, with it’s own quota.
Those would each be top-level Virtual Servers, rather than Sub-Servers.
and is there any way to changed it to top level? We have some information it could take a lot of time to move case by case.
The best way is probably to use Server Configuration -> Move Virtual Server, and to set "New parent server" to be "Convert to Parent".
I’m not sure if there’s a way to automate it beyond this, though if there were, it’d be documented somewhere in here:
Ok that is great!
we do not have many subdomains so this won’t take many time. My concern now is that all the subdomains have databases. Could we have an access problem with this procedure as we have to change the user and password?
many thanks for your help
My concern now is that all the subdomains have databases. Could we have an access problem with this procedure as we have to change the user and password
That’s an excellent question, and I’m not really sure how that would work
The worst case, I think, is that you’d need to update the application that uses the database in your sub-domain, and put in the new username and password.
Best case is that it does not remove the original Virtual Server owner’s access to the DB, so the username and password might keep working. I could see that potentially being the case, though at the same time that’s probably a bug if it does
So I’d go into this assuming you need to update the username and password in your database apps.