zoukankan      html  css  js  c++  java
  • httpd 不带反斜杠 出现 301重定向

    [root@VM_64_69_centos httpd]# curl http://localhost:9001/pay
    <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
    <html><head>
    <title>301 Moved Permanently</title>
    </head><body>
    <h1>Moved Permanently</h1>
    <p>The document has moved <a href="http://localhost:9001/pay/">here</a>.</p>
    <hr>
    <address>Apache/2.2.15 (CentOS) Server at localhost Port 9001</address>
    </body></html>
    [root@VM_64_69_centos httpd]# curl http://localhost:9001/pay/
    <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
    <html><head>
    <title>403 Forbidden</title>
    </head><body>
    <h1>Forbidden</h1>
    <p>You don't have permission to access /pay/
    on this server.</p>
    <hr>
    <address>Apache/2.2.15 (CentOS) Server at localhost Port 9001</address>
    </body></html>
    [root@VM_64_69_centos httpd]#

    尼玛,叫我情何以堪啊....

    ps:[403没有权限是正常的,因为没有默认执行文件index.php等.]

  • 相关阅读:
    开发管理工具(日常)
    python之uWSGI和WSGI
    php之Opcache
    nginx之健康检查
    重构糟糕的代码(一)
    PHP之50个开源项目
    Redis之各版本特性
    Redis之淘汰策略
    Redis之过期策略
    高并发之nginx限制
  • 原文地址:https://www.cnblogs.com/ayanmw/p/3778265.html
Copyright © 2011-2022 走看看