My question is how to configure Apache 2.4 for proxy operation.
I have a streamlit app that works correctly and is hosted at:
I have configured Apache 2.4 proxy settings so that the app is available here:
I get the following error in console:
main.35aa1d35.chunk.js:1 WebSocket connection to 'ws://dashboard-aircare.mapshalli.org/stream' failed: Error during WebSocket handshake: Unexpected response code: 400
My Apache proxy setting is as follows:
<VirtualHost *:80> ServerName dashboard-aircare.mapshalli.org ProxyPass / http://dashboard-aircare.mapshalli.org:8501/ ProxyPassReverse / http://dashboard-aircare.mapshalli.org:8501/ ProxyPass "/stream" "ws://dashboard-aircare.mapshalli.org:8501/stream" ProxyPassReverse "/stream" "ws://dashboard-aircare.mapshalli.org:8501/stream" </VirtualHost>
Most of the answers in this forum point to a standard stackoverflow response regarding Apache proxy configuration. I am hoping to get a concrete answer that is specific to streamlit. Thank you!