met*_*rce 1 mod-rewrite debian .htaccess 500-error apache-2.2
我在我的 apache 错误日志文件中收到这些错误:
[Fri May 20 16:17:06 2011] [notice] Apache/2.2.17 (Ubuntu) PHP/5.3.5-1ubuntu7.2 with Suhosin-Patch configured -- resuming normal operations
[Fri May 20 16:17:11 2011] [alert] [client 127.0.0.1] /home/zomerovic/vhosts/brillelook/public_html/.htaccess: Invalid command 'RewriteCond', perhaps misspelled or defined by a module not included in the server configuration
[Fri May 20 16:17:12 2011] [alert] [client 127.0.0.1] /home/zomerovic/vhosts/brillelook/public_html/.htaccess: Invalid command 'RewriteCond', perhaps misspelled or defined by a module not included in the server configuration
[Fri May 20 16:17:12 2011] [alert] [client 127.0.0.1] /home/zomerovic/vhosts/brillelook/public_html/.htaccess: Invalid command 'RewriteCond', perhaps misspelled or defined by a module not included in the server configuration
[Fri May 20 16:17:12 2011] [alert] [client 127.0.0.1] /home/zomerovic/vhosts/brillelook/public_html/.htaccess: Invalid command 'RewriteCond', perhaps misspelled or defined by a module not included in the server configuration
Run Code Online (Sandbox Code Playgroud)
但是我已经启用了 mod_rewrite,以及其他 apache mod 的(如 a2dismod 所说):
Your choices are: auth_basic authn_file authz_default authz_groupfile authz_host authz_user autoindex cgi deflate dir env headers mime negotiation php5 reqtimeout setenvif status vhost_alias
Run Code Online (Sandbox Code Playgroud)
RewriteCond 与其他一些 mod 是否存在冲突,或者我遗漏了什么?
谢谢。
跑
a2enmod rewrite
/etc/init.d/apache2 restart
Run Code Online (Sandbox Code Playgroud)
它将为您加载重写模块
您看到的错误不是因为您没有使用重写的权限,而是因为它不可用,从您提供的 a2dismod 列表输出中可以看出(它没有出现在列表中)
归档时间: |
|
查看次数: |
8855 次 |
最近记录: |