免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2131 | 回复: 0
打印 上一主题 下一主题

cake AllowOverride,apache AllowOverride [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-01-20 00:59 |只看该作者 |倒序浏览
手册上是这么写的,但是我配置的时候发现 AllowOverride All不是设置在这里,而是下面的 AllowOverride All
这两个不同地方的AllowOverride 有什么区别吗?
确保你正在修改的是系统的 httpd.conf, 而不是一个用户的或一个站点的 httpd.conf:
   1. M确保 .htaccess 允许重载,并且确保 DocumentRoot 的 AllowOverride 设成 All。在你的 httpd.conf 里,你应该看到类似下面的片段:
---------------------------------------------------------------------------------------------------------------
      Plain Text View
      #
      # Each directory to which Apache has access can be configured with respect
      # to which services and features are allowed and/or disabled in that
      # directory (and its subdirectories).
      #
      # First, we configure the "default" to be a very restrictive set of
      # features.
      #
      
      Options FollowSymLinks
      AllowOverride All
      # Order deny,allow
      # Deny from all
      
         1. #
         2. # Each directory to which Apache has access can be configured with respect
         3. # to which services and features are allowed and/or disabled in that
         4. # directory (and its subdirectories).
         5. #
         6. # First, we configure the "default" to be a very restrictive set of
         7. # features.
         8. #
         9.
        10. Options FollowSymLinks
        11. AllowOverride All
        12. # Order deny,allow
        13. # Deny from all
        14.
---------------------------------------------------------------------------------------------------------------
#
# Note that from this point forward you must specifically allow
# particular features to be enabled - so if something's not working as
# you might expect, make sure that you have specifically enabled it
# below.
#
#
# This should be changed to whatever you set DocumentRoot to.
#
    #
    # 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
    #
    # 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 All
    #
    # Controls who can get stuff from this server.
    #
    Order allow,deny
    Allow from all
               
               
               

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u3/96161/showart_2154179.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP