您的位置:首页 > 运维架构 > Apache

apache错误:Internal Server Error

2012-12-26 10:55 316 查看

apache错误:Internal Server Error

想装一个bugfree,放到WEB根目录下,用.htaccess设置好了访问规则.然后用127.0.0.1/bugfree访问网页时,出现了错误提示,风开始以为是开发迅雷占用了80端口,改了端口还是出现同样的错误.

Internal Server Error

The server encountered an internal error ormisconfiguration and was unable to completeyour request.

Please contact the server administrator, 123@123.com and inform them of the time the error occurred,and anything you might have done that may havecaused the error.

More information about this error may be availablein the server error log.

Apache/2.2.4 (Win32) PHP/5.2.3 Server at 127.0.0.1 Port 80

在Apache\logs\error.log里面去找相关错误的详细提示:
.htaccess: Invalid command 'RewriteEngine', perhaps misspelled ordefined by a module not included in the server configuration
说明.htaccess中定义的RewriteEngine根本就没有起作用,问题肯定就是处在httpd.conf这个配置文件里面了。
三:解决错误

加载rewrite模块,在httpd.conf文件里加上如下代码:

LoadModule rewrite_module modules/mod_rewrite.so

也可以直接去掉LoadModule rewrite_module modules/mod_rewrite.so前的注释“#”
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: