Hi František Lorenc,
Welcome to Microsoft Q&A Platform. Thank you for reaching out & hope you are doing well.
I understand that you've setup Azure Front Door with two routes, out of which one is working fine but the other one is not.
I have created setup Front Door (standard) endpoint to route azure static websites like below:
To resolve this issue add a routing rule like below:
Please find the below document for more information on Patterns to match and origin path usage:
https://learn.microsoft.com/en-us/azure/frontdoor/how-to-configure-endpoints#add-a-route
Patterns to match - Configure all URL path patterns that this route accepts. For example, you can set the pattern to match to /images/* to accept all requests on the URL www.contoso.com/images/*. Azure Front Door determines the traffic based on exact match first. If no paths match exactly, then Front Door looks for a wildcard path that matches. If no routing rules are found with a matching path, then the request get rejected and returns a 400: Bad Request error HTTP response.
Origin path: This path is used to rewrite the URL that Azure Front Door will use when constructing the request forwarded to the origin. By default, this path isn't provided. As such, Azure Front Door will use the incoming URL path in the request to the origin. You can also specify a wildcard path, which will copy any matching part of the incoming path to the request path to the origin. Origin path is case sensitive. Pattern to match: /foo/* Origin path: /fwd/ Incoming URL path: /foo/a/b/c/ URL from Azure Front Door to origin: fwd/a/b/c.
Kindly let us know if the above helps or you need further assistance on this issue.
Thanks,
Rohith.
Please don’t forget to close the thread by clicking "Accept the answer" wherever the information provided helps you, as this can be beneficial to other community members.