Limiting the Amount of Resources a Site Can Consume
By default, new web sites that you set up without the help of domain templates, are allowed to consume unlimited amounts of bandwidth (data transfer) and disk space.
To limit the amount of resources this site can consume:
- Click the Domains shortcut in the navigation pane.
- Click the domain name you need.
- Click the Limits icon.
- Adjust the resource usage allotments as required:
- Maximum number of subdomains. Specify the number of subdomains that can be hosted under this domain.
- Maximum number of domain aliases. Specify the number of additional alternative domain names that the site owner will be able to use for his or her web site.
- Disk space. Specify the total amount of disk space allocated to a hosting account associated with the domain. This amount is measured in megabytes. It includes disk space occupied by all files related to this domain/web site: web site contents, databases, applications, mailboxes, log files and backup files. This is the so-called soft quota: when it is exceeded, domain names and web sites are not suspended automatically, only the appropriate notices are sent to your and site owner's e-mail addresses and the resource overage is indicated by a corresponding icon
shown in the control panel to the left of the domain name (see the list of domain names that opens when you click the Domains shortcut in the navigation pane). And then it is up to you to decide what to do with the web site:
- you can notify the domain owner and suspend the domain/web site after a grace period until you receive the payment (not so good for your business, but if you are going to follow that way, see the Suspending and Unsuspending Hosting Accounts and Web Sites section),
OR
- upgrade the account for your customer (see the instructions on upgrading accounts in the Modifying User Accounts section).
- Maximum amount of traffic. Specify the amount of data in megabytes that can be transferred from the web site during a month. Once the limit is reached, the appropriate notices are sent to your and site owner's e-mail addresses and the resource overage is indicated by a corresponding icon
shown in the control panel to the left of the domain name (see the list of domain names that opens when you click the Domains shortcut in the navigation pane). When a web site starts attracting more visitors and requires more bandwidth, consider upgrading an account (see the instructions on upgrading accounts in the Modifying User Accounts section). - Maximum number of web users. Specify the number of personal web pages that the domain owner can host for other users under his or her domain. This service is mostly used in educational institutions that host non-commercial personal pages of their students and staff. These pages usually have web addresses like http://your-domain.com/~username. If you wish to allow execution of scripts embedded in personal web pages, select the Allow the web users scripting check box. See the Hosting Personal Web Pages section for details.
- Maximum number of databases. Specify the number of databases that can be hosted in a domain.
- Maximum number of mailboxes. Specify the number of mailboxes that can be hosted in a domain.
- Mailbox quota. Specify the amount of disk space in kilobytes that is allocated for storing e-mail messages and autoresponder attachment files to each mailbox in a domain.
- Maximum number of mail forwarders. Specify the number of mail forwarders that can be used in a domain.
- Maximum number of mail autoresponders. Specify the number of automatic responses that can be set up in a domain.
- Maximum number of mailing lists. Specify the number of mailing lists that the domain owner can run in a domain. The mailing lists are served by the GNU Mailman software, therefore the GNU Mailman should be installed and configured before your customers can use it.
- Maximum number of Java applications. Specify the maximum number of Java applications or applets that the domain owner can install in a domain.
- Validity period. Specify the term for a hosting account. At the end of the term, the domain/web site will be suspended, its Web, FTP and mail services will no longer be accessible to the Internet users, and domain owner will not be able to log in to the control panel. Hosting accounts cannot be automatically renewed, therefore, in order to bring the hosted domain name/web site back to operation, you will need to manually renew the hosting account: click Domains shortcut in the navigation pane, click the domain name your need, click the Limits icon, specify another term in the Validity period box, click OK, then click the Switch On icon in the Domain group (Domains > domain name).
- Click OK.
To protect your site from DoS attacks and to ensure that your site responds promptly when there are many visitors, you can limit the number of simultaneous connections to the site and limit the amount of bandwidth that visitors to the site can consume:
- Click the Domains shortcut in the navigation pane.
- Click the domain name you need.
- Click Performance.
- Select the Switch on bandwidth limiting check box, and in the Maximum network use (KB/S) box, type the maximum speed in kilobytes per second that a site can share among all its connections. For example: 128.
- Select the Switch on connections limiting check box, and in the Connections limited to box, type the maximum number of simultaneous connections. For example: 100.
- Click OK.