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, [email protected] 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前的註釋“#”