Skip to content

Feature: Allow Wildcard Path on Host/path #45

@composer22

Description

@composer22

Currently, as far as I can tell, routes need to be explicit for a given host, hence loading is very heavy because every route needs to be configured for a service.

What would be nice is a wildcard so only the host is taken into account and all traffic is redirected to that host:

For example, any of these requests:

http://fabio_server_ip:9999/foo.example.com/v1.0/about
http://fabio_server_ip:9999/foo.example.com/v1.0/login

would be redirected here:

foo.example.com/*
        foo_1                  10.0.0.2:32789
        foo_2                  10.0.0.3:32872

so foo_1 and 2 would receive this:

10.0.0.2:32789/v1.0/about
10.0.0.3:32872/v1.0/login

If there is a way to do this now, then I don't see it in the code or docs. Please explain.

I have to either be explicit or do this shit:

http://fabio_server_ip:9999/foo/v1.0/about
http://fabio_server_ip:9999/foo/v1.0/login

would be handled here:

/foo
        foo_1                  10.0.0.2:32789
        foo_2                  10.0.0.3:32872

and foo_1 and 2 receive this:

10.0.0.2:32789/foo/v1.0/about
10.0.0.3:32872/foo/v1.0/login

so now the server has to account for the hostname in the path which is BS.

Metadata

Metadata

Assignees

No one assigned

    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