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

有nginx-gridfs经验的童鞋 求助~

  •  
  •   AsaDong · 2012-08-13 12:12:30 +08:00 · 3582 次点击
    这是一个创建于 4274 天前的主题,其中的信息可能已经有所发展或是发生改变。
    问题说明:首页图片比较多的情况下,第一次访问的时候图片加载正常,第二次有缓存就开始出错了,IE和chrome都有问题,firefox正常。用Fiddler查得话报这个错误。
    -----------------------
    Fiddler has detected a protocol violation in session #58.

    The Server did not return properly formatted HTTP Headers. HTTP headers
    should be terminated with CRLFCRLF. These were terminated with LFLF.
    -----------------------

    nginx配置

    location /photo/
    {
    if ($query_string ~* ^flush)
    {
    rewrite .* /thumb.php?f=$request_filename;
    }
    gridfs tongleqi field=filename type=string;
    mongo 127.0.0.1:27017;
    default_type image/jpeg;
    error_page 404 = /thumb.php?f=$request_filename;

    expires 30d;
    }

    mongo 2.0.5

    大家帮忙看看 tks
    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2803 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 12:28 · PVG 20:28 · LAX 05:28 · JFK 08:28
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.