V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
blueden
V2EX  ›  问与答

Django+nginx+xmpp over bosh http-bind请求404

  •  
  •   blueden · 2013-09-09 00:01:12 +08:00 · 3169 次点击
    这是一个创建于 3891 天前的主题,其中的信息可能已经有所发展或是发生改变。
    django上开了debug=false,用nginx来处理静态资源,集成的xmpp web client[candychat]发送http-bind/请求感觉没有被nginx拦截到,一直报404,请问怎么解决?

    1.nginx里的http-bind/设置 location /http-bind/ { proxy_pass http://localhost.com:7070/http-bind/; proxy_buffering off; tcp_nodelay on; }

    2.html中调用candychat的index发送http-bind请求 <frame src="/static/candy/example/index.html">[其中static是静态资源目录]

    3.candychat发送的http-bind请求 Candy.init('http-bind/', { core: { debug: false,autojoin:['[email protected]']}, view: { resources: '../res/',language:'en' } });
    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2343 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 03:44 · PVG 11:44 · LAX 20:44 · JFK 23:44
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.