{"action":"created","issue":{"url":"https://api.github.com/repos/jupyter/jupyterhub/issues/219","labels_url":"https://api.github.com/repos/jupyter/jupyterhub/issues/219/labels{/name}","comments_url":"https://api.github.com/repos/jupyter/jupyterhub/issues/219/comments","events_url":"https://api.github.com/repos/jupyter/jupyterhub/issues/219/events","html_url":"https://github.com/jupyter/jupyterhub/issues/219","id":66916569,"number":219,"title":"Deploying behind a reverse proxy","user":{"login":"danielballan","id":2279598,"avatar_url":"https://avatars.githubusercontent.com/u/2279598?v=3","gravatar_id":"","url":"https://api.github.com/users/danielballan","html_url":"https://github.com/danielballan","followers_url":"https://api.github.com/users/danielballan/followers","following_url":"https://api.github.com/users/danielballan/following{/other_user}","gists_url":"https://api.github.com/users/danielballan/gists{/gist_id}","starred_url":"https://api.github.com/users/danielballan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielballan/subscriptions","organizations_url":"https://api.github.com/users/danielballan/orgs","repos_url":"https://api.github.com/users/danielballan/repos","events_url":"https://api.github.com/users/danielballan/events{/privacy}","received_events_url":"https://api.github.com/users/danielballan/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-04-07T15:29:38Z","updated_at":"2016-01-05T04:20:38Z","closed_at":"2015-04-20T19:45:22Z","body":"Has anyone worked on deploying jupyterhub behind a Reverse Proxy?\r\n\r\nI am trying to deploy it on a system that communicates with the open network through an Apache reverse proxy. Authentication works fine, and kernels are created when users open notebooks, but the notebooks cannot connect to their kernels. It looks like requests are coming in, but communication out through the Apache server is not working correctly."},"comment":{"url":"https://api.github.com/repos/jupyter/jupyterhub/issues/comments/168892029","html_url":"https://github.com/jupyter/jupyterhub/issues/219#issuecomment-168892029","issue_url":"https://api.github.com/repos/jupyter/jupyterhub/issues/219","id":168892029,"user":{"login":"chandragaajula","id":2474552,"avatar_url":"https://avatars.githubusercontent.com/u/2474552?v=3","gravatar_id":"","url":"https://api.github.com/users/chandragaajula","html_url":"https://github.com/chandragaajula","followers_url":"https://api.github.com/users/chandragaajula/followers","following_url":"https://api.github.com/users/chandragaajula/following{/other_user}","gists_url":"https://api.github.com/users/chandragaajula/gists{/gist_id}","starred_url":"https://api.github.com/users/chandragaajula/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chandragaajula/subscriptions","organizations_url":"https://api.github.com/users/chandragaajula/orgs","repos_url":"https://api.github.com/users/chandragaajula/repos","events_url":"https://api.github.com/users/chandragaajula/events{/privacy}","received_events_url":"https://api.github.com/users/chandragaajula/received_events","type":"User","site_admin":false},"created_at":"2016-01-05T04:20:38Z","updated_at":"2016-01-05T04:20:38Z","body":"@nafiux I have the following entry in \"/etc/apache2/sites-enabled\" on my Ubuntu 15.10\r\n\r\n<VirtualHost *:80>\r\n        ServerName \"jupyter.xxxxxxxxxxxx.com\"\r\n        ProxyPass / http://192.168.254.23:8888/\r\n        ProxyPassReverse / http://192.168.254.23:8888/\r\n        Header edit Origin \"jupyter.xxxxxxxxxxxx.com\" 192.168.254.23:8888\r\n        RequestHeader edit Origin \"jupyter.xxxxxxxxxxxx.com\" 192.168.254.23:8888\r\n\r\n        Header edit Referer \"jupyter.xxxxxxxxxxxx.com\" 192.168.254.23:8888\r\n        RequestHeader edit Referer \"jupyter.xxxxxxxxxxxx.com\" 192.168.254.23:8888\r\n        <Location ~ \"/(user/[^/]*)/(api/kernels/[^/]+/channels|terminals/websocket)/?\">\r\n                ProxyPass ws://192.168.254.23:8888\r\n                ProxyPassReverse ws://192.168.254.23:8888\r\n        </Location>\r\n</VirtualHost>\r\n\r\nAfter making the above entry I restarted apache: \"sudo service apache2 restart\"\r\n\r\nHowever, when I attempt to run my script the Kernel is unable to connect. What's the workaround? \r\n![jupyterreverseproxy](https://cloud.githubusercontent.com/assets/2474552/12107469/7261f1a2-b320-11e5-9d7e-fd630e60c1b2.png)\r\n"}}