<VirtualHost *:80> ServerName tongcheng.5q88.cn:80 ServerAlias DirectoryIndex index.html index.htm index.php ErrorLog logs/tongcheng.5q88.cn-error.log CustomLog logs/tongcheng.5q88.cn-access_%Y%m%d.log comonvhost DocumentRoot "C:/www/kb" <Directory "C:/www/kb"> Options Indexes FollowSymLinks Includes ExecCGI AllowOverride All Require all granted </Directory> </VirtualHost>
照着上边赋值.就行 !!!
最简化配置如下(不设置域名,域名别名--):
listen 9000
<VirtualHost *:9000>
DirectoryIndex index.html index.htm index.php
DocumentRoot "E:projectphplai-bang-bangapipublic"
<Directory "E:projectphplai-bang-bangapipublic">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Require all granted
</Directory>
</VirtualHost>