Multiple conditionals in rules for routing

In the documentation here they use the following example Traefik Routers Documentation - Traefik

rule = "Host(`example.com`) || (Host(`example.org`) && Path(`/traefik`))"

What is not super unclear to me is which of these would this do:

  1. route requests for example.com/traefik and example.org/traefik and fail for a request like example.com/2/

Or
2) route requests for example.com/traefik and example.org/traefik and also accept a request like example.com/2

I guess what i'm asking is does the boolean evaluate the hosts as one set of conditions and then apply the path prefix to both or does it only apply to the example.org

A router rule matches or not, to then apply middleware and forward to service for matches.

If you want different results for other domains, you should add another router.