Integrate http apache with kaazing gateway

151 Views Asked by At

I am running an app on http apache 2.4 through which I am trying to connect to a kaazing gateway. I have followed the instructions that are found in kaazing site at "setup-guide.html#webserver_integrate" section, but the connection keeps failing: the Mozilla console prints:

 TypeError: this._socket is undefined, 4146 XmppClient.js

I changed the <allow origin> with an *. I would like to ask whether I should make any changes on the configuration file of apache.

1

There are 1 best solutions below

0
On

Finally, I managed it to work. I made a new install of kaazing gateway. In gateway-config.xml at the GATEWAY_HOME/conf/ I changed the value of the gateway.hostname with my internal ip and set the

*

at

<cross-site-constraint> <allow-origin>*</allow-origin> </cross-site-constraint>

in service with type: xmpp.proxy and this time worked! Also I changed '

*

with the

http://localhost:80

(http apache) and also worked. I don't know why didn 't it work before. Thanks for trying to help!