tomcat - apache - ejabberd connectivity problem

I am trying to connect to ejabberd server passing request thorugh tomcat.

as per my understanding flow is tomcat --> apache --> ejabberd.

-------------------- httpd.conf -----------------

{hosts, ["localhost","qlc.in","gosocio.qlc.net"]}.
{5280, ejabberd_http, [
http_bind,
http_poll,
web_admin
]}

{auth_method, external}.
{extauth_program, "/path/to/authentication/script"}.

{odbc_server, {mysql, "localhost", "ejabberd", "gosocio", "gosocio123"}}.

{modules,
[
{mod_adhoc, []},
{mod_announce, [{access, announce}]}, % recommends mod_adhoc
{mod_caps, []},
{mod_configure,[]}, % requires mod_adhoc
{mod_disco, []},
%%{mod_echo, [{host, "echo.localhost"}]},
{mod_irc, []},
{mod_http_bind, []},
{mod_last_odbc, []},
{mod_muc, [
%%{host, "conference.@HOST@"},
{access, muc},
{access_create, muc_create},
{access_persistent, muc_create},
{access_admin, muc_admin}
]},
{mod_offline_odbc, [{access_max_user_messages, max_user_offline_messages}]},
{mod_ping, []},
{mod_privacy, []},
{mod_private, []},
{mod_proxy65,[]},
{mod_register, [
{welcome_message, {"Welcome!",
"Hi.\nWelcome to this XMPP server."}},
{access, register}
]},

{mod_roster_odbc, []},
%%{mod_service_log,[]},
{mod_shared_roster,[]},
{mod_stats, []},
{mod_time, []},
{mod_vcard, []},
{mod_version, []}
]}.

------------------------- ejabberd.cfg ----------------------

LoadModule jk_module modules/mod_jk.so
JkWorkersFile "/etc/httpd/conf/workers.properties"
JkLogFile "/var/log/httpd/mod_jk.log"
JkLogLevel info

ServerName gosocio.qlc.net
ServerAlias www.gosocio.qlc.net

JKMount /* tomcat

AddDefaultCharset UTF-8
RewriteEngine on
RewriteLog "/var/log/httpd/rewrite_log"
RewriteLogLevel 9

RewriteRule /http-bind/ http://192.168.1.52:5280/http-bind/ [P]
RewriteRule /http-bind http://192.168.1.52:5280/http-bind/ [P]

--------------------------------
after configuring all this when i am passing username,password, domain from js file & try to connect to ejabberd server it give me 502 proxy error or 404 not found error.

if anybody can help it will be appriciable.

Syndicate content