Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/apache/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Apache 500内部服务器错误。htaccess:</档案>;不匹配<;档案>;第节,参考:http://localhost/_Apache - Fatal编程技术网

Apache 500内部服务器错误。htaccess:</档案>;不匹配<;档案>;第节,参考:http://localhost/

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

您好,我的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][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>