I’m trying to set up TLJH as a folder on an existing webserver. My desired behavior is the following:
- Navigate to example.org/site1 to access an existing site running on CGI scripts
- Navigate to example.org/jupyter to access JupyerHub (set up with TLJH)
I’ve tried configuring TLJH through
tljh-config to no avail. At the moment, I have Apache accepting traffic over port 80. site1 is working fine, but when I try to go to example.org/jupyter, I get redirect to example.org/hub/jupyter/ and get a 404 error.
The output of
tljh-config show is:
users: admin: - hcchem3d user_environment: default_app: jupyterlab http: port: 8080 https: port: 8443 c: HubAuth: hub_prefix: jhub JupyterHub: bind_url: http://:15001/jupyter/
My Apache configuration for Jupiter is:
<VirtualHost *:80> RedirectMatch ^/jupyter(()|/)$ /jupyter/ ProxyRequests on <Location "/jupyter/"> # Preserve Host header to avoid cross-origin problems ProxyPreserveHost on # Proxy to JupyterHub ProxyPass http://localhost:8080/jupyter/ ProxyPassReverse http://localhost:8080/jupyter/ </Location> </VirtualHost>
I can’t figure out where the redirection is occurring from /jupyter -> /hub/jupyter/. None of the instructions for base installs of JupyterHub are helping, I assume because Traefik is doing some work in the middle of this process. Is there a way to get this to work within the TLJH ecosystem?