1. 程式人生 > >phpstudy配置域名站點報You don't have permission to access / on this server的解決方案

phpstudy配置域名站點報You don't have permission to access / on this server的解決方案

先配置好站點,如果你沒配置,請參考:

https://blog.csdn.net/qq_42249896/article/details/85047136
當我們配置好了,卻顯示:
在這裡插入圖片描述
這時,我們在檢查一下本地配置:
****加粗樣式****
在這裡插入圖片描述

解決方案:

一、刪除apche的配置檔案vhosts.conf中的Options FollowSymLinks ExecCGI
在這裡插入圖片描述
在這裡插入圖片描述
二、修改Apache下面的http.conf檔案
在這裡插入圖片描述
在這裡插入圖片描述
找到171行,把#號註釋去掉。
三、phpstudy 允許目錄列表打上勾
在這裡插入圖片描述
好了,這時,我們本地新增的域名就能訪問了!