« FreeBSD 服务器架设和设置备忘 | Main | 雪豹项目喜获“SEE·TNC生态奖 ” »

开启mod_rewrite模块很容易犯的500错误

在.htaccess文件中加入RewriteEngine On如果访问页面显示500错误,这时候你要去检查配置段中AllowOverride选项,一般apache刚安装的时候出于安全考虑的AllowOverride会处于None状态,而也会处于AuthConfig状态,而这些状态是不适合mod_rewrite运转的,正确的状态应该添加FileInfo指令,具体配置方法可以参考http://apache.w8a.com/mod/core.html#allowoverride 如果是虚拟主机,当然还需要检查虚拟主机的对应目录的AllowOverride是否正确,通过这些检查,500错误应该就没有了,对应的模块也就能使用了.

TrackBack

TrackBack URL for this entry:
http://www.gccgle.com/cgi-bin/mt/mt-tb.cgi/6

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)

About

This page contains a single entry from the blog posted on July 14, 2007 04:51 PM.

The previous post in this blog was FreeBSD 服务器架设和设置备忘.

The next post in this blog is 雪豹项目喜获“SEE·TNC生态奖 ”.

Many more can be found on the main index page or by looking through the archives.

Powered by
Movable Type 3.34