Using middlewares on specific pages

Hello. I want to ask how can I set middlewares on specific pages of website? For example I can set middlewares on main rule host like example.com, but I can't figure out how to apply specific middleware like rateLimit on example.com/login.php at the same time. Is it even possible to do that with traefik ?

Welcome @xhitman

See this answer, basically the same thin.