• Halloween is coming! To celebrate the occasion, we dusted off a couple of old skins, and even created a brand new one (Pixel).
    To get into the festive spirit, install the Skins extension.
  • The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

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