mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-18 15:33:02 +00:00
host-based routing doesn't support wildcards
This commit is contained in:
@@ -1111,10 +1111,13 @@ class JupyterHub(Application):
|
|||||||
|
|
||||||
# routespec for the Hub is the *app* base url
|
# routespec for the Hub is the *app* base url
|
||||||
# not the hub URL, so it receives requests for non-running servers
|
# not the hub URL, so it receives requests for non-running servers
|
||||||
|
# use `/` with host-based routing so the Hub
|
||||||
|
# gets requests for all hosts
|
||||||
host = ''
|
host = ''
|
||||||
if self.subdomain_host:
|
if self.subdomain_host:
|
||||||
host = urlparse(self.subdomain_host).hostname
|
routespec = '/'
|
||||||
routespec = host + self.base_url
|
else:
|
||||||
|
routespec = self.base_url
|
||||||
|
|
||||||
self.hub = Hub(routespec=routespec, **hub_args)
|
self.hub = Hub(routespec=routespec, **hub_args)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user