Skip to content

How to set upstream to same server #124

Description

@JoePercipientAI

I want to set up a reverse proxy that will redirect a Django app URL to another part of the same website that is outside of Django.

(for example):

www.mysite.com/MyDjangoApp/foo/ -> www.mysite.com/bar/

And of course, I need this to work for whatever domain/server the app is installed on.

The example in the docs only shows redirecting to a static alternate domain (upstream='http://example.com/'). What to I set "upstream" to in order to use whatever server the original request was made to, instead of always going to example.com?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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