Apache2开启mod_rewrite的方法

[ 2007/11/10 23:57 | by Johnny.He ]
| |
本来要开启rewrite,只要打开httpd.conf,把下面这行前面的#去掉就可以了。

#LoadModule rewrite_module modules/mod_rewrite.so


可是昨天装了apache2最新版却出了意外,去掉了这行,rewrite还没打开

用了一个下午,百思不得其解.终于发现httpd.conf里有这么一段

<Directory "/usr/local/www">
#
# 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#opt...
# 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 None

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

</Directory>

将AllowOverride None改为AllowOverride All
重启Apache,终于搞定!
Tags:
一本便利 » Internet|Web | 评论(1) | 引用(0) | 阅读(652)
超人
2008/11/08 18:09
大哥谢谢了,正烦着呢,看你的一下就搞定了。
Johnny.He 回复于 2008/11/10 02:59
呵呵~你太客气了,上面的文章能对你有用~我也深感欣慰啊~哈哈~
分页: 1/1 第一页 1 最后页
发表评论
昵称 [注册]
密码 游客无需密码
网址
电邮
打开HTML 打开UBB 打开表情 隐藏 记住我