Skip to content

Proxying relative URLs in redirects #88

Closed
@ian-r-rose

Description

@ian-r-rose

In gitter I was chatting with @yuvipanda about the possibility of proxying one version of JupyterLab (specifically using --dev-mode) underneath the main one running in binder. https://gitter.im/jupyterhub/binder?at=5c42411983189945240fa7af

In trying this I ran into an issue with redirects. The proxied notebook server returns several redirects towards the default page, but when these redirects (e.g., to /lab), are received by the outer notebook server, they are then used to proxy to a page there rather than a page on the proxied server. This is not the effect I was looking for, and it seems to make pages in the proxied server entirely inaccessible if there is a redirect in the way.

This can be tested locally in this branch by running jupyter notebook --config=binder/config.py. Any thoughts on how to move forward?

I don't know a ton about the right language around proxies, so apologies if this is using the wrong language or is easily fixable :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions