【问题标题】:Apache 2.4 404 Error with Joomla .htaccessJoomla .htaccess 的 Apache 2.4 404 错误
【发布时间】:2016-02-14 03:29:10
【问题描述】:

我更新到 Apache 2.4。我的 Joomla 网站没有改变,并且使用的是最新版本 .. 3.5.8。我的 .htaccess 文件没有改变,我还有其他网站正在运行,只是我的 Joomla 网站没有。会导致此问题的 Apache 2.4 有何不同?

我搜索了 Joomla 的网站,没有提到我能找到的 Apache 2.4 问题。我也尝试过更改 .htaccess 文件,但这没有意义,因为它是由 Joomla 提供的。

【问题讨论】:

    标签: apache joomla


    【解决方案1】:

    我也遇到过同样的问题。问题是 Apache 2.4 处理 .htaccess 文件有点不同。好吧,只是指令发生了变化。查看您的 Apache 虚拟主机配置并将其更新如下:

    <Directory "your directory here">
        Options Indexes FollowSymLinks
        AllowOverride All
        Require all granted
    </Directory>
    

    在 Apache 2.4 中,“order”被弃用,被“require”取代,

    【讨论】:

    • 哦,伙计....你是一个活生生的救星!就是这样。我不确定你是如何找到答案的,但我是一个快乐的露营者。谢谢。
    • 很抱歉,我无法为您的答案投票。我试过了,但我还没有足够的声誉。请其他人投票。这是 Apache 2.2 的一个重大变化。
    猜你喜欢
    • 2011-07-07
    • 2016-01-19
    • 1970-01-01
    • 1970-01-01
    • 2020-12-11
    • 2016-04-06
    • 1970-01-01
    • 2015-08-31
    • 1970-01-01
    相关资源
    最近更新 更多