# Jupyterhub subdomain and SSL

**URL:** <https://discourse.jupyter.org/t/jupyterhub-subdomain-and-ssl/4697>\
**Category:** JupyterHub\
**Created:** [June 4, 2020, 4:16am UTC](https://discourse.jupyter.org/t/jupyterhub-subdomain-and-ssl/4697 "2020-06-04T04:16:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pfdog](https://avatars.discourse-cdn.com/v4/letter/p/ecd19e/32.png) [@pfdog](https://discourse.jupyter.org/u/pfdog)\
**Post date:** [June 4, 2020, 4:16am UTC](https://discourse.jupyter.org/t/jupyterhub-subdomain-and-ssl/4697/1 "2020-06-04T04:16:58Z")

</div>

I have SSL established by a physically separate server and would like to access Jupyterhub just as [https://jupyter.thedomain.org](https://jupyter.thedomain.org) (ignoring port 8000). I have other (non Jupyter) subdomains working in https via Apache on the same server. Looking at jupyterhub\_config.py, might the following be set accordingly?  
c.JupyterHub.bind\_url = ?  
c.JupyterHub.hub\_bind\_url = ?  
c.JupyterHub.hub\_connect\_url = ?  
c.JupyterHub.hub\_connect\_ip = ?

---

<div class="post-metadata">

**Author:** ![minrk](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/minrk/32/13_2.png) [@minrk](https://discourse.jupyter.org/u/minrk)\
**Post date:** [June 4, 2020, 8:01am UTC](https://discourse.jupyter.org/t/jupyterhub-subdomain-and-ssl/4697/2 "2020-06-04T08:01:26Z")

</div>

What sort of issue are you seeing?

The `hub_` network configuration is all about _internal_ jupyterhub configuration that shouldn’t be affected by putting a reverse proxy in front of the public JupyterHub endpoint. Typically, putting Apache and SSL termination in front of JupyterHub does not require any JupyterHub configuration at all unless you are also putting it on a sub _path_ in which case setting `c.JupyterHub.base_url = "/prefix/"` ought to be the only configuration needed. If they were on the same machine, you might set the JupyterHub.bind\_url to use localhost, but since they aren’t, no configuration should be needed.

What Spawner and Authenticator are you using? Are users all running on the same server as the Hub?

---

<div class="post-metadata">

**Author:** ![pfdog](https://avatars.discourse-cdn.com/v4/letter/p/ecd19e/32.png) [@pfdog](https://discourse.jupyter.org/u/pfdog)\
**Post date:** [June 4, 2020, 5:41pm UTC](https://discourse.jupyter.org/t/jupyterhub-subdomain-and-ssl/4697/3 "2020-06-04T17:41:29Z")

</div>

OK, so I set c.JupyterHub.base\_url = “/jupyter/”, re-issued the SSL cert for [jupyter.thedomain.org](http://jupyter.thedomain.org), and modified Apache’s ProxyPass and related in jupyterhub.conf.  
Works! Thank you.
