apache报错You don't have permission to access /test/index.php on this server.

来源:互联网 发布:pr mac破解版 编辑:程序博客网 时间:2024/06/11 18:30

竟然遇到这问题:


You don't have permission to access /test/index.php on this server.



可我本地localhost已绑定127.0.0.1,奇怪



不奇怪,我改了之后:


<Directory "/usr/local/webdata">
    #
    # Possible values for the Options directive are "None", "All",
    # or any combination of:
    #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
    #
    # Note that "MultiViews" must be named *explicitly* --- "Options All"
    # doesn't give it to you.
    #
    # The Options directive is both complicated and important.  Please see
    # http://httpd.apache.org/docs/2.2/mod/core.html#options
    # for more information.
    #
    Options Indexes FollowSymLinks MultiViews


    #
    # AllowOverride controls what directives may be placed in .htaccess files.
    # It can be "All", "None", or any combination of the keywords:
    #   Options FileInfo AuthConfig Limit
    #
    AllowOverride None


    #
    # Controls who can get stuff from this server.
    #
    Order allow,deny
    Allow from all


</Directory>


我没重启!谢特!



0 0
原创粉丝点击