我已经使用 Shinyproxy 和 Shiny 部署了一个网络应用程序。
如果我去http://localhost/mycontextpath/app/01_example一切正常。ProxyPass和ProxyPassReverse已在 Apache 中设置,现在我可以直接访问http://mywebsite.org/mycontextpath/app/01_example来使用我的应用程序。
问题是屏幕自动变灰。我知道这是 Apache 的问题,因为浏览器调试器会打印此消息:
Firefox can't establish a connection to the server at ws://mywebsite.org/mycontextpath/wonderful_hypatia/websocket/.
我尝试将此行添加到我的 Apache 配置中:
ProxyPassMatch "^/(.+)/websocket" "ws://localhost:8146/mycontextpath/$1/websocket" keepalive=On
但这似乎不起作用。
有什么建议吗?谢谢!