Proxy in a brilliant server using Apache 2.4

I am using a brilliant server (latest version, 1.4.2.786) for Apache 2.4, Ubuntu 14.04.

Following the instructions in the online documentation ( https://support.rstudio.com/hc/en-us/articles/213733868-Running-Shiny-Server-with-a-Proxy ), I can correctly configure proxies for web sockets. However, I would like to point my URL directly to a brilliant application (not all applications).

This is my current configuration:

ProxyPreserveHost On
ProxyPassMatch "^/(.+)/websocket" "ws://localhost:3838/$1/websocket"
ProxyPass "/" "http://localhost:3838/users/username/appname/"
ProxyPassReverse "/" "http://localhost:3838/users/username/appname/"
ProxyRequests Off

In this configuration, I still get the error message:

WebSocket connection to 
'wss://my-url/__sockjs__/
n=WxwgyafTMc2bWeH5eR/787/mx9zqt68/websocket' 
failed: Error during WebSocket handshake: 
Unexpected response code: 500

I assume this is caused by the socket proxy configuration. Thanks for any suggestions for fixing it.

+4
source share
1

? , :

ProxyPreserveHost On
ProxyPassMatch "^/(.+)/websocket" "ws://localhost:3838/$1/websocket"
ProxyPass "/users/username/appname/" "http://localhost:3838/users/username/appname/"
ProxyPassReverse "/users/username/appname/" "http://localhost:3838/users/username/appname/"
ProxyRequests Off

, !

+3

All Articles