考虑到在wdcp面板中操作时的便利,真正解决问题时不改变conf/vhost文件夹下的内容,因为这里的内容都是wdcp生成的。换种方法,改动conf/httpd.conf!在该文件最后,include vhost/*.conf一条之前,添加需要的二级域名。改完之后像这样:
NameVirtualHost *:80
Include conf/httpd-wdl.conf
Include conf/default.conf
Include conf/wdcp.conf
# Add Sub Domain list
Include conf/vhost/uc.lybendi.com.conf (注:这是二级域名对应的conf文件的链接。)
# Import Other Domain
Include conf/vhost/*.conf