首先看下面的配置:
<VirtualHost *:80> ServerAdmin [email protected] DocumentRoot "D:/xampp/htdocs/wherein" ServerName www.shop_dev.com ErrorLog "logs/wherein.com-error.log" CustomLog "logs/wherein.com-access.log" common <Directory "D:/xampp/htdocs/wherein"> Options FollowSymLinks IncludesNOEXEC Indexes DirectoryIndex index.html index.htm index.php AllowOverride all Order Deny,Allow Allow from all Require all granted </Directory> </VirtualHost> <VirtualHost *:80> ServerAdmin