apache错误:Internal Server Error

来源:互联网 发布:使用管家婆存入软件 编辑:程序博客网 时间:2024/05/01 00:12

apache错误:Internal Server Error

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前的注释“#”

0 0
原创粉丝点击