我能够使用API(带有PHP脚本)在我的plesk面板(linux serverm和plesk 10.4.4)中创建子域。 但我无法在网上找到两件事:
/subdomains/my-subdomain
?非常感谢...
答案 0 :(得分:1)
试试这个:
HTTP_AUTH_LOGIN: <login here>
HTTP_AUTH_PASSWD: <password here>
Content-Type: text/xml
<?xml version="1.0" encoding="UTF-8"?>
<packet version="1.6.3.4">
<subdomain>
<add>
<parent>parent domain name here</parent>
<name>subdomain name</name>
<property>
<name>ftp_password</name>
<value>qweqwe</value>
</property>
<property>
<name>webstat</name>
<value>awstats</value>
</property>
<property>
<name>www_root</name>
<value>httpdoc</value>
</property>
</add>
</subdomain>
</packet>
如果设置请求将是:
HTTP_AUTH_LOGIN: <login here>
HTTP_AUTH_PASSWD: <password here>
Content-Type: text/xml
<?xml version="1.0" encoding="UTF-8"?>
<packet version="1.6.3.4">
<subdomain>
<set>
<filter><id>ID</id></filter>
<property>
<name>webstat</name>
<value>awstats</value>
</property>
<property>
<name>www_root</name>
<value>httpdoc</value>
</property>
</set>
</subdomain>
</packet>