apache 配置子域名

功能:不管多少个子域名 demo.liaosp.top/还是 demo2.liaosp.top

ServerAlias *.daishua.test
<VirtualHost *:80>
DocumentRoot "E:\linuxdir\php\daishuagit"
ServerName daishua.test
ServerAlias *.daishua.test
<Directory "E:\linuxdir\php\daishua">
Options FollowSymLinks ExecCGI
AllowOverride All
Order allow,deny
Allow from all
Require all granted
</Directory>
</VirtualHost>