michael.gysin
New Pleskian
Hello
If a create a subscription on a plesk Server through the API don't know how to specify the preferred domain and it's always set to domain.tld. I would like to set it to none for all.
My xml request:
If I add an alias i can set it with prefs/seo-redirect.
How can I set it on a domain? Any ideas?
Thanks
Michael
If a create a subscription on a plesk Server through the API don't know how to specify the preferred domain and it's always set to domain.tld. I would like to set it to none for all.
My xml request:
Code:
<packet version="1.6.3.0">
<webspace>
<add>
<gen_setup>
<name>' + @Domain + '</name>
<owner-id>' + CONVERT(varchar, @PleskCustomerID) + '</owner-id>
<ip_address>' + @ServerSharedIP + '</ip_address>
</gen_setup>
<hosting>
<vrt_hst>
<property>
<name>ftp_login</name>
<value>' + @Username + '</value>
</property>
<property>
<name>ftp_password</name>
<value>' + @Password + '</value>
</property>
<ip_address>' + @ServerSharedIP + '</ip_address>
</vrt_hst>
</hosting>
<prefs>
<www>0</www>
</prefs>
<plan-name>' + @Template + '</plan-name>
</add>
</webspace>
</packet>
If I add an alias i can set it with prefs/seo-redirect.
How can I set it on a domain? Any ideas?
Thanks
Michael