# JupyterHub Apache Proxy Reverse not working

**URL:** <https://discourse.jupyter.org/t/jupyterhub-apache-proxy-reverse-not-working/8863>\
**Category:** JupyterHub\
**Tags:** help-wanted\
**Created:** [April 21, 2021, 3:16pm UTC](https://discourse.jupyter.org/t/jupyterhub-apache-proxy-reverse-not-working/8863 "2021-04-21T15:16:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![M-Volkmer](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/m-volkmer/32/4216_2.png) [@M-Volkmer](https://discourse.jupyter.org/u/M-Volkmer)\
**Post date:** [April 21, 2021, 3:16pm UTC](https://discourse.jupyter.org/t/jupyterhub-apache-proxy-reverse-not-working/8863/1 "2021-04-21T15:16:02Z")

</div>

Hello everyone,  
not sure if this is a JupyterHub or Apache problem, or a mix of both.  
I’m currently setting up a JupyterHub for my university, where users will have to authenticate through Shibboleth. The desired result would be that when accessing the Hub via it’s DNS, you get passed on to the Shibboleth-Server, where you will have to enter your credentials and log in, and then you get redirected back to the Hub. I’m trying to achieve this using an Apache Proxy Reverse, and it works up to the point where instead of getting redirected back to the Hub, I’m just getting the Apache Default Page.

I have a bachelor thesis from a different university on this very subject, which I use as a “how-to”-guide, and apparently this is what it has to look like:

- the jupyterhub\_config.py

- the Apache config in /etc/apache2/sites-available/sp-proxy.conf

The part I think I’m missing is when it comes to defining a “DocumentRoot” in the Apache config file, which is currently commented out. When I create some kind of example index html file, it correctly redirects me to that index page.

But how do I set or find an index page for the Hub? In the bachelor thesis I have it just says “DocumentRoot /var /www /”, and in the JupyterHub Docs that part is just left out completely. Any suggestions?

I’m running the latest Ubuntu-version, all necessary Apache-mods installed and activated, ports open and all… I can’t wrap my head around it…

---

<div class="post-metadata">

**Author:** ![manics](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/manics/32/85_2.png) [@manics](https://discourse.jupyter.org/u/manics)\
**Post date:** [April 21, 2021, 6:28pm UTC](https://discourse.jupyter.org/t/jupyterhub-apache-proxy-reverse-not-working/8863/2 "2021-04-21T18:28:13Z")

</div>

Have you tried setting [`c.JupyterHub.base_url`](https://jupyterhub.readthedocs.io/en/stable/api/app.html#jupyterhub.app.JupyterHub.base_url)?

---

<div class="post-metadata">

**Author:** ![M-Volkmer](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/m-volkmer/32/4216_2.png) [@M-Volkmer](https://discourse.jupyter.org/u/M-Volkmer)\
**Post date:** [May 3, 2021, 7:56am UTC](https://discourse.jupyter.org/t/jupyterhub-apache-proxy-reverse-not-working/8863/3 "2021-05-03T07:56:41Z")

</div>

i made it work, for anyone curious here’s the solution:

the hub is bound to [jupyterhubtest.oth-aw.de/jupyterhub/](http://jupyterhubtest.oth-aw.de/jupyterhub/), but i just tried to access it via [jupyterhubtest.oth-aw.de](http://jupyterhubtest.oth-aw.de) . Using the full url, it works.

Sometimes it’s the little things… 😉
