Skip to content

Add support to remove path prefix when proxying to backend #1174

Closed
@zdila

Description

@zdila

I would like http://example.com/foo/bar to be proxied as http://127.0.0.1:8080/bar - ie. I wan to strip /foo from the path going to the backend. Is it possible?

Without stripping:

[[clusters.sig.frontends]]
address = "0.0.0.0:80"
hostname = "example.com"
path = "/foo"

[[clusters.sig.backends]]
address = "127.0.0.1:8080"

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