V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
blueden
V2EX  ›  问与答

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

  •  
  •   blueden · Sep 9, 2013 · 3895 views
    This topic created in 4615 days ago, the information mentioned may be changed or developed.
    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' } });
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   968 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 20:41 · PVG 04:41 · LAX 13:41 · JFK 16:41
    ♥ Do have faith in what you're doing.