• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

auto create domain alias

C

checkit

Guest
Hello,

How can I automatically create domain aliases in plesk?

For example, I have 200 domains that I want to point to 1 domain that I created in Plesk.

I don't want to have to go through plesk and add each domain individually under Domain Alias.

From my register, I can only point to the DNS.

What files do I have to edit to add these domains as aliases to my main domain?

Thanks,
 
Hello, Checkit

The following can be done with Plesk 7.6.1 for Windows. If you have an older version, you would need to upgrade

You can use Plesk RPC API to manage domain aliases.

Here is the link to RPC API documentation:

http://download1.swsoft.com/Plesk/Plesk7.5/Doc/plesk-7.5r-sdk-html/index.html

An example of a script executing an API request can be found here:

http://download1.swsoft.com/Plesk/Plesk7.5/Doc/plesk-7.5r-sdk-html/docs/plesk_agent/ch03.html

You can find the schema used for creating a domain alias here on your Plesk server:

%plesk_dir%\admin\htdocs\schemas\rpc\1.4.1.1\plesk_domainalias.xsd

Does this help?
 
Hi,

thanks for the reply. Is the info you gave me for Windows version of the Plesk?

It looks like my host is using 7.5.

Thanks,
 
The RPC API is available with both, Plesk for Windows and Linux/Unix
 
Back
Top