gpt4 book ai didi

apache - 无法删除 Apache noindex 页面

转载 作者:行者123 更新时间:2023-12-04 19:43:53 26 4
gpt4 key购买 nike

  • CentOS 7.3.1611
  • Apache httpd-2.4.6-45.el7.centos.x86_64

  • 我需要将默认的 Apache noindex 页面(“Testing 123..”)替换为开发环境的配置页面。

    我尝试删除它,但它似乎已将自己永久缓存在服务器上的某个地方,我无法摆脱它。我已删除 /etc/httpd/conf.d/welcome.conf以及整个 /usr/share/httpd/noindex/目录。

    我已经重新启动服务器并验证它不是客户端(在不同的客户端计算机和浏览器上结果相同)。

    是否有一些缓存机制对此负责?我该如何清除它?

    最佳答案

    尝试更改 Apache 的 noindex 处理不是一个好主意。更好的方法可能是使用 LocationMatch 重定向对“/”的请求。 httpd.conf 中的指令

    <LocationMatch "^/$">
    Redirect "/" "/config.php"
    </LocationMatch>

    关于apache - 无法删除 Apache noindex 页面,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41233533/

    26 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com