网上的答案千篇一律,没有一个能用的,真心怀疑这些作者有没有自己试过他们的答案。直接上答案:打开 Apache/conf/extra/httpd-vhosts.conf修改<VirtualHost default:80>ServerName example.comDocumentRoot “把这里改成你的document root” <Directory “把这里改成你的document root”>AllowOverride AllOrder allow,denyAllow from all</Directory></VirtualHost>也有这样的总之吧DocumentRoot改过来就对了然后重启一下Apache,就OK了