You don't have permission to access / on this server,Forbidden

wampserver配置虛擬主機Forbidden,apache You don't have permission to accesshtml

找到httpd.conf文件(一般在安裝apache的conf目錄下),用編輯器打開apache

進入到 DocumentRoot Directory 這一行修改裏面的內容編輯器

<Directory "${INSTALL_DIR}/www/">

將Directory後面引號裏面的修改爲你的項目文件的根目錄或者根目錄所在的盤符,例如我配置的是D盤下的site,最好寫絕對路徑ui

<Directory "D:/site">

繼續找到 Require localcode

Require all granted

重啓wamp或者apache便可server

相關文章
相關標籤/搜索