Skip to content

Fabio fails to strip the prefix if the url prefix does not start with the strip option value #363

@pvandervelde

Description

@pvandervelde

We have a web service running which serves a site on

http://myhost/artefacts

And the consul service configuration contains the following tag

urlprefix-/artefacts/installers strip=/installers host=dst

I was expecting that this would make fabio strip the path correctly but what happens instead seems to be that the full prefix is passed on to the service, i.e. fabio calls http://myhost/artefacts/installers.
I assumed that the strip option would indicate to fabio which part of the prefix to remove however it seems that it only works if the option contains the first part of the url prefix.

Is there a way to get fabio to strip the selected text from the prefix?

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

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions