- 论坛徽章:
- 0
|
手册上是这么写的,但是我配置的时候发现 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 |
|