(1)
Destoon后台->网站设置–>SEO优化–>公司主页绑定二级域名处填(.cn.itkylin.com)
–>泛解析绑定目录处填(company目录)
(2)
接下来设置apache绑定泛域名,
<VirtualHost *>
ServerAdmin [email protected]
DocumentRoot /usr/local/www/itkylin.com/qiye/company
ServerAlias *.cn.itkylin.com
<Directory /usr/local/www/itkylin.com/qiye/company>
Options All
AllowOverride All
</Directory>
ErrorLog /var/log/http/www.itkylin.com-error_log
CustomLog /var/log/http/www.itkylin.com-access_log common
</VirtualHost>
(3)现在可以通过http://xxxx.cn.itkylin.com来访问destoon的公司网站了!