【问题标题】:500 internal server error .htaccess: </files> without matching <files> section, referer: http://localhost/500 内部服务器错误 .htaccess: </files> without matching <files> section, referer: http://localhost/
【发布时间】:2013-03-01 06:50:56
【问题描述】:

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

【问题讨论】:

  • 能否请您提供htaccess文件的内容,会有帮助
  • 文件代码已更新..

标签: apache


【解决方案1】:
# protect php.ini
#<files *.ini>
order allow,deny
deny from all
</files>

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

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

<files *.ini>
order allow,deny
deny from all
</files>

【讨论】:

    猜你喜欢
    • 2012-02-23
    • 2022-10-04
    • 2019-11-01
    • 2017-08-17
    • 1970-01-01
    • 1970-01-01
    • 2016-09-22
    • 2017-04-05
    • 1970-01-01
    相关资源
    最近更新 更多