yii中訪問出現的錯誤:Youdon'thavepermissiontoacces
來源:懂視網
責編:小采
時間:2020-11-09 15:29:39
yii中訪問出現的錯誤:Youdon'thavepermissiontoacces
yii中訪問出現的錯誤:Youdon'thavepermissiontoacces:訪問路徑http://localhost/yii/framework/yiiProject時出現403錯誤提示: You don't have permission to access / on this server. 于是google、百度上查了一通。大都是建議在apache的httpd.conf中將 Directory/ Options
導讀yii中訪問出現的錯誤:Youdon'thavepermissiontoacces:訪問路徑http://localhost/yii/framework/yiiProject時出現403錯誤提示: You don't have permission to access / on this server. 于是google、百度上查了一通。大都是建議在apache的httpd.conf中將 Directory/ Options

訪問路徑http://localhost/yii/framework/yiiProject時出現403錯誤提示: You don't have permission to access / on this server. 于是google、百度上查了一通。大都是建議在apache的httpd.conf中將 Directory/ OptionsFollowSymLinks AllowOverrideNone Or
訪問路徑http://localhost/yii/framework/yiiProject時出現403錯誤提示:
You don't have permission to access / on this server.
于是google、百度上查了一通。大都是建議在apache的httpd.conf中將
Options FollowSymLinks
AllowOverride None
Order deny,allow
deny from all
改成
Options FollowSymLinks
AllowOverride None
#Order deny,allow
#deny from all
但是,我照做之后還是不行。
經過一番查找之后終于發現原來是我用的yii中本身有個.htaccess,這個文件當中定義了
deny from all
將它改成
allow from all
之后,就可以了。
聲明:本網頁內容旨在傳播知識,若有侵權等問題請及時與本網聯系,我們將在第一時間刪除處理。TEL:177 7030 7066 E-MAIL:11247931@qq.com
yii中訪問出現的錯誤:Youdon'thavepermissiontoacces
yii中訪問出現的錯誤:Youdon'thavepermissiontoacces:訪問路徑http://localhost/yii/framework/yiiProject時出現403錯誤提示: You don't have permission to access / on this server. 于是google、百度上查了一通。大都是建議在apache的httpd.conf中將 Directory/ Options