I've got a Vagrantfile and supporting files set up for testing the 
jhub_remote_authenticator.  This setup uses apache2 httpd and mod_wsproxy.

  https://github.com/cwaldbieser/vagrant_jhub_remote_user_authenticator_test_env

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

On Saturday, April 21, 2018 at 5:28:21 PM UTC-4, Evan Clark wrote:
>
> 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]
>

-- 
You received this message because you are subscribed to the Google Groups 
"Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jupyter/61bcaf4f-6e68-4e10-a33f-d05c3f1ee684%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to