Skip to content

allow redirect host to be empty #533

@holtwilkins

Description

@holtwilkins

And use request host if redirect host is empty.

Something like

route add global-redirect :80 https://$path opts "redirect=301"

Was suggested in #455, and I'm filing this ticket in response to that one.

My use-case here is being able to redirect anything received on http to fabio to serve a 301 to the https endpoint of the same address you used to get to fabio in the first place.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions