0

嗨,我的 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/

我的 .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>
4

1 回答 1

0
# protect php.ini
#<files *.ini>
order allow,deny
deny from all
</files>

在这里你评论了“文件”指令

请删除评论以使您的文件部分与此相同:

<files *.ini>
order allow,deny
deny from all
</files>
于 2013-03-13T13:00:00.350 回答