Subdomain Quota

7 posts / 0 new
Last post
#1 Thu, 04/30/2009 - 09:30
excale

Subdomain Quota

Hi,

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?

Many thanks

Thu, 04/30/2009 - 09:35
andreychek

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.
-Eric

Thu, 04/30/2009 - 09:53 (Reply to #2)
excale

Many thanks!

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.

cheers

Thu, 04/30/2009 - 09:57 (Reply to #3)
andreychek

Howdy,

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:

http://www.virtualmin.com/documentation/id,command_line_api/

Thu, 04/30/2009 - 10:03 (Reply to #4)
excale

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

Thu, 04/30/2009 - 17:00 (Reply to #5)
andreychek

<div class='quote'>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</div>

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.
-Eric

Fri, 05/01/2009 - 02:13 (Reply to #6)
excale

Thanks it worked!!

Topic locked