Home  >  Article  >  Database  >  yii中访问出现的错误: You don't have permission to acces

yii中访问出现的错误: You don't have permission to acces

WBOY
WBOYOriginal
2016-06-07 15:43:011440browse

访问路径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

之后,就可以了。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn