<div dir="ltr">Hi all,<div><br></div><div>Am I right in thinking this list is also the right place for questions about Jupyterhub?</div><div><br></div><div>I'm trying to set up Jupyterhub for multiple users, on the same server where we are running several other services. Currently there are NGINX redirects in place to these other services. I'd like to set up http://<public-url>/ipython/ to redirect to a port on localhost and run Jupyterhub over that port. Is this possible?</div><div><br></div><div>I've got this working in the past with single-user IPython Notebook. For that, I set config options c.NotebookApp.base_project_url, c.NotebookApp.base_kernel_url, and c.NotebookApp.webapp_settings to be aware of the ipython/ URL prefix. We used an NGINX redirect to forward requests and handle websockets properly, which looked like</div><div><br></div><div><div>location /ipython/ {</div><div>    proxy_pass <a href="http://127.0.0.1:9510">http://127.0.0.1:9510</a>;</div><div>    proxy_set_header Host $host;</div><div>    proxy_set_header X-Real-IP $remote_addr;</div><div>    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;</div><div>    proxy_set_header Upgrade $http_upgrade;</div><div>    proxy_set_header Connection "upgrade";</div><div>    }</div></div><div><br></div><div>This worked for the old single-user notebook. But, I'm not clear on the model Jupyterhub is using (and I'm not much of a sysadmin). I read through the command-line options, thought from them that I don't need to strip the /ipython/ from the incoming requests, and have tried using a similar redirect to the above and setting --JupyterHubApp.base_url='ipython/' and also setting --port 9510. This does seem to see the incoming requests but results in amusing requests like </div><div>







<p class="">500 GET /ipython/ipython/hub/ipython/ipython/hub/ipython/ipython/hub/ipython/ipython/hub/ipython/ipython/hub/ipython/ipython/hub/ipython/ipython/hub/ipython/ipython/hub/ipython/ipython/hub/ipython/ipython/hub/ipython/ipython/hub/ipython/ipython/hub/ipython/ipython/hub/ipython/ipython/hub/ipython/ipython/hub/......</p><p class="">... so clearly I haven't understood what's going on. Does anyone have any pointers on how this should work? I haven't read any docs other than the README and the command-line parameter information, so apologies if there's something obvious that I didn't look at.</p><p class="">I'm also interested in running Jupyterhub as a daemon, so if that's something that's been done before and there's anything I should know, that would be great.</p><p class="">Any help much appreciated!</p><p class="">Clare</p></div>







</div>