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?
I am trying to add static routes in the fabio.properties configuration file.
I tried:
Or
Calling via:
But I get in the logs:
or:
When using the hostname.
After restarting fabio I check the logs, and I can see:
In any case I cannot see the route in output of:
I wonder if I am doing something wrong?