Skip to content

Static routes in fabio.properties #498

@nuriel77

Description

@nuriel77

I am trying to add static routes in the fabio.properties configuration file.

I tried:

registry.static.routes = \
    route add svc 10.70.0.23/ http://google.com:80/

Or

registry.static.routes = \
    route add svc my-test.example.com/ http://google.com:80/

Calling via:

curl -H "Host: my-test.example.com" http://10.70.0.23/

But I get in the logs:

[WARN] No route for 10.70.0.23/

or:

[WARN] No route for my-test.example.com/

When using the hostname.

After restarting fabio I check the logs, and I can see:

May 17 17:28:33 lbtest-1.localdomain fabio[1422]: "Static": {
May 17 17:28:33 lbtest-1.localdomain fabio[1422]: "Routes": "route add svc 10.70.0.23/ http://google.com:80/"
May 17 17:28:33 lbtest-1.localdomain fabio[1422]: },

In any case I cannot see the route in output of:

curl  http://10.70.0.23:9998/api/routes

I wonder if I am doing something wrong?

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