cancel
Showing results for 
Search instead for 
Did you mean: 

Apache 2.4 proxy config for agentry app on SMP3.0

Former Member
0 Kudos

Experts,

I would like to understand the httpd.conf virtual host section for Apache 2.4 reverse proxy to make it work with SMP3.0 / Agentry app.

I am getting "unexpected disconnection from server(11)" when trying the rev proxy url from an iOS client.

I can successfully connect to the iOS client to the SMP server directly (bypassing the rev proxy) and complete the sync.

IN the logs on the proxy I see http return code 200 for the app on SMP server. I am not sure what else could be missing. I do see " I am here" msg.

Does anyone have any more ideas that I can try our? 

THanks

VIshal

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

I found the solution:

I had to ensure that my ProxyPass directive was set to use web sockets protocol.

That is:

ws:// or wss://

Former Member
0 Kudos

hello Parikh,

I met the same problem with you. Would you like to share how to change the Agentry application address to web sockets protocol format?

thank you!

Former Member
0 Kudos

Hi Jean

You would need to enable the web socket module in httpd.conf and make sure the protocol in the SMP server URL is set to wss

>>>>>>

LoadModule proxy_wstunnel_module modules/mod_proxy_wstunnel.so

ProxyPass / wss://yourSMPserverFQDN:portNumber/

      ProxyPassReverse / wss://yourSMPserverFQDN:portNumber/

>>>>>>

Former Member
0 Kudos

Hi Parikh,

yes, from the previous discussion I understand the Apache configuration in httpd.conf. But what really confuse me is the SMP part. I don't know where to enable the websocket protocol in SMP server URL. would you please suggest on the SMP protocol configuration part?

Thank you!

Best Regards,

Jean

Former Member
0 Kudos

Hi Jean,

If the agentry application was published using the agentry editor for SMP (Agentry Editor Plugin v70.x.x.x), it should have updated the connect type of your transmit config def to web sockets over HTTPS already (See attached image).

Other than this app config, the httpd.conf is the only place where you need to enable wss:// protocol for your SMP URL (as mentioned in my previous response).

Hope this helps !

Vishal

Answers (1)

Answers (1)

Former Member
0 Kudos

By default, Apache 2.4 doesn't support WebSockets.  I believe someone created a plugin so it can.

The Agentry Client to Server is done by HTTPS WebSocket Connection.

Former Member
0 Kudos

Yes, we have it enabled in the httpd.conf

LoadModule proxy_wstunnel_module modules/mod_proxy_wstunnel.so