domalias: Domain Aliases
The domalias
utility is used to manage domain aliases through CLI. By using this utility, you can perform the following tasks:
- creating or deleting domain aliases
- viewing the information about domain aliases
- enabling and disabling Web, Tomcat, and mail services on domain aliases
Usage
Example
The following command creates domain alias example.net for the domain example.com, enables the domain alias, and enables mail service on the domain alias.
Commands
Command | Parameter | Description | Example |
---|---|---|---|
|
|
Creates a new domain alias. Requires |
To create a domain alias example.net for the domain example.com: plesk bin domalias --create example.net -domain example.com or plesk bin domalias -c example.net -domain example.com |
|
|
Updates configuration of an existing domain alias with the data specified in the options. |
To enable mail service on the domain alias example.net: plesk bin domalias --update example.net -mail true or plesk bin domalias -u example.net -mail true |
|
|
Deletes a domain alias. |
To delete the domain alias example.net: plesk bin domalias --delete example.net or plesk bin domalias -d example.net |
|
|
Deletes all domain aliases for the specified domain. |
To delete all domain aliases for the domain example.com: plesk bin domalias --delete-all example.com or plesk bin domalias -da example.com |
|
|
Displays information about a domain alias. |
To view information about the domain alias example.net: plesk bin domalias --info example.net or plesk bin domalias -i example.net |
|
|
Enables a domain alias. |
To enable domain alias example.net: plesk bin domalias --on example.net |
|
|
Disables a domain alias. |
To disable domain alias example.net: plesk bin domalias --off example.net |
|
|
Renames a domain alias. Requires |
To rename the domain alias from example.net to example.org: plesk bin domalias --rename example.net -new-name example.org or plesk bin domalias -r example.net -new-name example.org |
|
|
Displays help on the use of the utility. |
To view help on the use of this utility: plesk bin domalias --help or plesk bin domalias -h |
Options
Option | Parameter | Description | Example |
---|---|---|---|
|
|
Sets a new name for an existing domain alias Required with |
To rename the domain alias from example.net to example.org: plesk bin domalias -r example.net -new-name example.org |
|
|
Enables/Disables mail service on a domain alias. Is |
To disable mail service on the domain alias example.net: plesk bin domalias -u example.net -mail false |
|
|
Enables/Disables web service on a domain alias. Is |
To disable web service on the domain alias example.net: plesk bin domalias -u example.net -web false |
|
|
Specifies the name of the domain for which domain alias is to be created. Required with |
To create a domain alias example.net for the domain example.com plesk bin domalias -c example.net -domain example.com |
|
|
Enables/Disables domain alias. Is |
To disable domain alias example.net: plesk bin domalias -u example.net -status disabled |
|
|
Enables/Disables the Tomcat service on a domain alias. Is |
To enable the Tomcat service on the domain alias example.net: plesk bin domalias -u example.net -tomcat true |
|
|
Turns on the search engine friendly HTTP 301 redirection. Use ' |
To turn on redirection for the domain alias example-alias.com to www.example.com: plesk bin subscription -u example-alias.com -seo-redirect www
To turn on redirection for the domain alias example-alias.com to example.com: plesk bin subscription -u example-alias.com -seo-redirect non-www |
|
|
Enables/Disables DNS zone on a domain alias. |
To enable the DNS zone on the domain alias example.net: plesk bin domalias -u example.net -dns true |