Xampp在Windows 10上安裝之后,一般需要自已設(shè)定網(wǎng)站目錄,這個(gè)步驟經(jīng)常出現(xiàn)錯(cuò)誤。
錯(cuò)誤一: httpd-vhosts.conf 自定義網(wǎng)站目錄之后,網(wǎng)站訪問出現(xiàn) 403 Forbidden錯(cuò)誤。
解決方法:
在apache配置文件 httpd.conf 中找到這么一段代碼
<Directory />
? ? AllowOverride none
? ? Require all deny? 改為??Require all granted
</Directory>
重啟apache服務(wù)即可。