This answer explains how you can create domain templates on your VPS. This makes adding new domains to your VPS easier.
To implement a hosting plan (or simplify setup of multiple domains), create a domain template, and define hosting services and resource allocation in accordance with your hosting plan:
1 On your homepage, click the Domain Templates icon in the Tools group.
2 Click Add Domain Template.
3 Specify the template properties:
- Template name. Specify a name for this template. During setup of a new hosting account, you will be prompted to select the required template by its name. Therefore, we recommend that you choose a meaningful name that corresponds to one of your hosting plans or describes the amount of allotted resources. For example, Mail hosting, 1GB disk space, 500 mailboxes.
- Mail to nonexistent users. Specify the domain-wide mail bounce options: When somebody sends an email message to an email address that does not exist under your domain, the mail server returns the mail back to the sender with the "this address no longer accepts mail" notice. You can choose to:
- Change the default notice (leave the Bounce with message option selected and type another message into the input box).
- Forward undelivered mail to another email address (select the Forward to address option and specify the email address you need).
- Reject mail without accepting it (select the Reject option). This setting can decrease mail server load caused by a large amount of spam, which is often directed at randomly generated user names. However, this can make it easier for spammers to scan your mail server for valid addresses.
- WebMail. Specify whether the users of mailboxes in this domain should be able to read their mail through a browser based webmail application.
- Maximum number of subdomains. Specify the number of subdomains that can be hosted under this domain.
- Maximum number of domain aliases. Specify the total number of additional domain names the site owner will be able to use for their website.
- 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 or website: website contents, databases, applications, mailboxes, log files and backup files. This is the so-called soft quota: when it is exceeded, domain names and websites are not suspended automatically, only the appropriate notices are sent to your and your provider's email addresses and the exceeded resource is indicated by the icon shown in the control panel. And then it is up to you to decide what to do with the domain:
- you can notify the domain owner and suspend the domain or website after a grace period until you receive the payment.
- Upgrade the hosting plan for your customer.
- Maximum amount of traffic. Specify the amount of data in megabytes that can be transferred from the website during a month. Once the limit is reached, the appropriate notices are sent to your and your provider's email addresses and the exceeded resource is indicated by a corresponding icon in the control panel. When a website starts attracting more visitors and requires more bandwidth, consider upgrading a hosting plan.
- 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 also the Allow the web users scripting checkbox.
- 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 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, which may or may not be installed on the server.
- 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 or website will be suspended, its web, FTP and mail services will no longer be accessible to the internet users, and the domain owner will not be able to log in to the control panel. Hosting accounts cannot be automatically renewed, so to bring the hosted domain name or website back to operation you need to manually renew the hosting account. To do this, click the domain name your need on your home page. Then click the Limits icon, specify another term in the Validity period box, click OK, then click the Enable icon in the Domain group (Home > domain name).
- Log rotation. All connections to the web server and requests for files that were not found on the server are registered in log files. These log files are analysed by the statistical utilities running on the server, which then present graphical reports on demand. If you need to view the contents of these raw log files for debugging purposes, on your home page, click the domain name you need, click Log Manager, and then click the log file name you need. To prevent these log files from growing too large, you should enable automatic cleanup and recycling of log files:
- select the Enable log rotation checkbox,
- specify when to recycle log files,
- specify how many instances of each log file processed by Plesk's statistical utilities to store on the server,
- specify whether they should be compressed,
- specify whether they should be sent to an email address after processing.
- Traffic statistics retention. Specify the number of months during which the bandwidth usage statistics should be kept on the server.
- DNS. Specify whether the DNS server on your web host should act as a master (primary) or slave (secondary) name server for the domain name zone. A primary name server stores locally the zone file it serves, while a secondary server only retrieves a copy of this file from the primary. You would normally leave the Master option selected.
- Physical hosting account. If you are going to host not only domain names, but also websites, select the Physical hosting check box and specify the hosting features
4 Click
OK to complete creation of a template.
During setup of a hosting account for a new domain website, you will select the required template and the hosting account will be created and allocated the resources and hosting services you defined.