1. 程式人生 > >Apache伺服器錯誤問題Internal Server Error

Apache伺服器錯誤問題Internal Server Error

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your 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 have caused the error.

More information about this error may be available in the server error log.

apache錯誤日誌如下:
[Mon May 16 10:02:30 2011] [alert] [client 127.0.0.1] D:/wamp/www/Think/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration



解決1:
1. 開啟 httpd.conf
2.找到 mod_rewrite.so 行,將前面的註釋開啟(即刪掉前面的'#'符號)。
3.關閉httpd.conf,重啟apache伺服器即可。 

解決2:
httpd.conf 中找到你網站目錄對應的Directory 行,將其中的 RewriteEngine 項設定為 'ALL'。

相關推薦

no