fabiolb / fabio

Consul Load-Balancing made simple
https://fabiolb.net
MIT License
7.27k stars 616 forks source link

Question: how to route '/' and only '/' #683

Open far-blue opened 5 years ago

far-blue commented 5 years ago

Hi all,

Quick question. With the default 'prefix' matcher is it possible to specifically only match 'host.domain/'? My company want to replace the homepage on a site with content from a separate app but none of the rest of the existing content. We already have a lot of services in the system and so don't want to change the matcher.

far-blue commented 5 years ago

anyone?

far-blue commented 5 years ago

can you turn on glob matching per urlprefix-? I assume if you can then just specifying domain.name/ without a * will do what I need.

aaronhurt commented 5 years ago

There isn't currently any way to enforce strict matching to my knowledge. If you have a route of example.com/ and the load balancer gets a request for example.com/foo and there is not any other more explicit route the request will be sent to the example.com/ backend.