V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
rse43
V2EX  ›  反馈

'404: Not Found' page with '200 OK‘ status code?

  •  
  •   rse43 · 2012-05-02 10:35:12 +08:00 · 4151 次点击
    这是一个创建于 4382 天前的主题,其中的信息可能已经有所发展或是发生改变。
    Should be '404 Not Found'.

    $ curl -v www.v2ex.com/404
    * About to connect() to www.v2ex.com port 80 (#0)
    * Trying 106.187.41.232... connected
    * Connected to www.v2ex.com (106.187.41.232) port 80 (#0)
    > GET /404 HTTP/1.1
    > User-Agent: curl/7.21.4 (universal-apple-darwin11.0) libcurl/7.21.4 OpenSSL/0.9.8r zlib/1.2.5
    > Host: www.v2ex.com
    > Accept: */*
    >
    < HTTP/1.1 200 OK
    < Date: Wed, 02 May 2012 02:32:06 GMT
    < Content-Type: text/html; charset=UTF-8
    < Connection: keep-alive
    < Content-Length: 69
    < Etag: "4d29230fb65c836072b3802c4cb3a9fd7c10e8be"
    < Server: TornadoServer/2.2
    < Set-Cookie: V2EX_LANG=en; Path=/
    <
    * Connection #0 to host www.v2ex.com left intact
    * Closing connection #0
    <html><title>404: Not Found</title><body>404: Not Found</body></html>
    5 条回复    1970-01-01 08:00:00 +08:00
    Kenyth
        1
    Kenyth  
       2012-05-02 10:37:39 +08:00
    哈哈。 嗯,这是一个问题。
    Livid
        2
    Livid  
    MOD
       2012-05-07 16:22:17 +08:00
    嗯,收到。

    我们会尽快修正。
    Livid
        3
    Livid  
    MOD
       2012-05-11 03:14:39 +08:00
    现在错误代码也是 404 了。

    多谢反馈。
    ranmocy
        4
    ranmocy  
       2012-05-11 07:33:59 +08:00
    原来这个也算是bug啊……
    404本身应该是静态页面,问下如何让它不会被直接访问到?
    ahu
        5
    ahu  
       2012-05-11 11:33:43 +08:00
    @ranmocy 可以在web服务器上设置,只允许从内部访问
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2340 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 08:50 · PVG 16:50 · LAX 01:50 · JFK 04:50
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.