Apache/proxy.conf:
IfModule mod_proxy.c>
ProxyRequests Off
<Proxy *>
AddDefaultCharset off
Order deny,allow
Deny from all
#Allow from .example.com
</Proxy>
ProxyVia On
<Proxy http://localhost:5280/http-bind>
Order allow,deny
Allow from all
</Proxy>
<Proxy http://localhost:8888/http-bind>
Order allow,deny
Allow from all
</Proxy>
ProxyPass /http-bind http://localhost:5280/http-bind
ProxyPass /nxb http://localhost:8888/http-bind
</IfModule>
JWChat/config.js (entry for NXB):
{
name: "NXB",
description: "BOSH through node-xmpp-bosh",
httpbase: "/nxb",
type: "binding",
servers_allowed: [SITENAME]
},
{5280, ejabberd_http, [
{request_handlers, [
{["web"], mod_http_fileserver}
]},
captcha,
http_bind,
http_poll,
web_admin
]}
...
{ modules,
...
{mod_http_bind, []},
No comments:
Post a Comment