• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

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