- Plesk Onyx for Linux
How to bulk create domain aliases to a domain in a single time?
It is possible to achieve that using the Plesk command line utility. To do so, proceed as follows:
Connect to the server via SSH .
Create a file using a text editor containing the alias names (one per line). For example:
# cat /root/aliaslist
Run the following command, switching "/path/to/filename" to the file path created in step 2, and "example.com" to the actual domain name:
# for i in `cat /path/to/filename` ; do /usr/local/psa/bin/domalias -c $i -domain example.com ; done