Websocket proxy issue with apache

346 views
Skip to first unread message

Evan Clark

unread,
Apr 21, 2018, 5:28:21 PM4/21/18
to Project Jupyter
I have attempted several configs to get websockets to properly proxy with apache, however I am still running into this error.

failed: Error during WebSocket handshake: Unexpected response code: 400

Below is the current applicable part of the apache config.

RewriteRule ^/jupyter$ /jupyter/ [R]
RewriteRule ^/jupyter(.*) http://localhost:8000/jupyter$1 [P]
RewriteCond %{HTTP:Upgrade} =websocket [NC]
RewriteRule ^/jupyter/(services/[^/]*)|(user/[^/]*)/(api/kernels/[^/]+/channels|terminals/websocket)/? wss://localhost:8000/$1 [P,L]

Carl Waldbieser

unread,
May 3, 2018, 2:11:58 PM5/3/18
to Project Jupyter
I've got a Vagrantfile and supporting files set up for testing the jhub_remote_authenticator.  This setup uses apache2 httpd and mod_wsproxy.


The provision.sh file describes the setup.  The httpd conf files are in the `etc` folder and sub-folders.  I ran into lots of issues with not having the necessary modules loaded before I finally got it working.

Thanks,
Carl Waldbieser
Reply all
Reply to author
Forward
0 new messages