Creating New Domains

Forward the site packet to Plesk API and specify the appropriate service node using node-id or node-ip to create a new domain at that service node.

Note: the domain (and other similar objects) will be created on the service node only. The information about these changes will be synced back to the management node during the next synchronization period (default: 15 minutes).

<packet>
  <request-settings>
    <setting>
      <name>plesk_rpc_forwarding_to_ext</name>
      <value>plesk-multi-server</value>
    </setting>
    <setting>
      <name>ext-plesk-multi-server:node-id</name>  <!-- or node-ip -->
      <value>3</value>
    </setting>
  </request-settings>
  <site>
   <add>
      <gen_setup>
        <name>sample4.tst</name>
        <webspace-id>74</webspace-id>
      </gen_setup>
      <hosting>
        <vrt_hst>
              <property>
                <name>fp</name>
                <value>false</value>
              </property>
              <property>
                <name>fp_ssl</name>
                <value>false</value>
              </property>
              <property>
                <name>fp_auth</name>
                <value>false</value>
              </property>
              <property>
                <name>fp_admin_login</name>
                <value/>
              </property>
              <property>
                <name>fp_admin_password</name>
                <value/>
              </property>
              <property>
                <name>ssl</name>
                <value>true</value>
              </property>
              <property>
                <name>php</name>
                <value>true</value>
              </property>
              <property>
                <name>php_handler_id</name>
                <value>plesk-php56-fastcgi</value>
              </property>
              <property>
                <name>ssi</name>
                <value>false</value>
              </property>
              <property>
                <name>cgi</name>
                <value>true</value>
              </property>
              <property>
                <name>python</name>
                <value>true</value>
              </property>
              <property>
                <name>asp</name>
                <value>false</value>
              </property>
              <property>
                <name>webstat</name>
                <value>awstats</value>
              </property>
              <property>
                <name>webstat_protected</name>
                <value>true</value>
              </property>
              <property>
                <name>errdocs</name>
                <value>true</value>
              </property>
              <property>
                <name>fastcgi</name>
                <value>true</value>
              </property>
              <property>
                <name>cgi_mode</name>
                <value>webspace</value>
              </property>
              <property>
                <name>www_root</name>
                <value>/sample</value>
              </property>
              <property>
                <name>safe_mode</name>
                <value>off</value>
              </property>
              <property>
                <name>open_basedir</name>
                <value>{WEBSPACEROOT}{/}{:}{TMP}{/}</value>
              </property>
            </vrt_hst>
      </hosting>
    </add>
  </site>
</packet>
 

Leave your feedback on this topic here

If you have questions or need support, please visit the Plesk forum or contact your hosting provider.
The comments below are for feedback on the documentation only. No timely answers or help will be provided.