【问题标题】:Why is there Ignoring deprecated use of DefaultType?为什么忽略不推荐使用 DefaultType?
【发布时间】:2018-01-29 09:24:53
【问题描述】:

我在 .htaccess 文件中编写了以下代码,但每当我加载 php 文件时,它都会显示此消息原因。

Options +MultiViews
DefaultType application/x-httpd-php
Options -Indexes
ErrorDocument 403 /403
ErrorDocument 404 /404

【问题讨论】:

标签: .htaccess server xampp


【解决方案1】:

DefaultType 不仅已弃用,它已在 Apache 2.3+ 中禁用。作为stated in the docs

如果值不是none,则该指令除了发出警告之外没有任何作用。

【讨论】:

    猜你喜欢
    • 2016-02-23
    • 2017-11-04
    • 2011-10-22
    • 2011-04-11
    • 2021-10-12
    • 2012-12-07
    • 2012-05-16
    • 2020-06-29
    • 2014-08-11
    相关资源
    最近更新 更多