【问题标题】:htaccess deny directory Internal Server Errorhtaccess 拒绝目录内部服务器错误
【发布时间】:2013-06-02 21:45:49
【问题描述】:


我在 .htaccess 中输入了以下代码:

<Directory ./folder>
deny from all
</Directory>

但我在所有网站文件夹中都收到“内部服务器错误”。

我的代码有什么问题?

【问题讨论】:

    标签: apache .htaccess directory


    【解决方案1】:

    您收到 500 错误,因为 .htaccess 中不允许使用 Apache Directory directive。您需要在 Apache 配置中使用,例如仅限httpd.conf

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-03-05
      • 1970-01-01
      • 2014-10-31
      • 2016-07-16
      • 1970-01-01
      相关资源
      最近更新 更多