Apache 500内部服务器错误。htaccess:</档案>;不匹配<;档案>;第节,参考:http://localhost/
您好,我的Apache错误日志文件中出现以下错误…500内部服务器错误帮助我解决此问题Apache 500内部服务器错误。htaccess:</档案>;不匹配<;档案>;第节,参考:http://localhost/,apache,Apache,您好,我的Apache错误日志文件中出现以下错误…500内部服务器错误帮助我解决此问题 [Wed Mar 13 16:33:13 2013] [alert] [client 127.0.0.1] C:/wamp/www/phpwork/.htaccess: </files> without matching <files> section, referer: http://localhost/ [Wed Mar 13 16:33:13 2013][alert][clie
[Wed Mar 13 16:33:13 2013] [alert] [client 127.0.0.1] C:/wamp/www/phpwork/.htaccess: </files> without matching <files> section, referer: http://localhost/
[Wed Mar 13 16:33:13 2013][alert][client 127.0.0.1]C:/wamp/www/phpwork/.htaccess:无匹配节,请参考:http://localhost/
我的.htaccess文件是
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule (.*\.(png|gif|jpg|jpeg|js|css|swf))$ webroot/img_handler.php?arg=$1 [L]
RewriteRule ^$ webroot/ [L]
RewriteRule (.*) webroot/$1 [L]
</IfModule>
# disable directory browsing -IMPORTANT, do NOT remove.
Options -Indexes
# protect the htaccess file
<files .htaccess>
order allow,deny
deny from all
</files>
# disable the server signature
ServerSignature Off
# protect php.ini
#<files *.ini>
order allow,deny
deny from all
</files>
重新启动发动机
重写规则(.\.(png | gif | jpg | jpeg | js | css | swf))$webroot/img|u handler.php?arg=$1[L]
重写规则^$webroot/[L]
重写规则(.*)webroot/$1[L]
#禁用目录浏览-重要信息,请勿删除。
选项-索引
#保护htaccess文件
命令允许,拒绝
全盘否定
#禁用服务器签名
服务器签名关闭
#保护php.ini
#
命令允许,拒绝
全盘否定
#保护php.ini
#
命令允许,拒绝
全盘否定
在这里,您对“文件”指令进行了注释
请删除注释以执行与此相同的文件部分:
<files *.ini>
order allow,deny
deny from all
</files>
命令允许,拒绝
全盘否定
能否请您提供htaccess文件的内容。如果代码已更新,则会有帮助。。
<files *.ini>
order allow,deny
deny from all
</files>