I created a application load balancer and a HTTPS listener. Now I want to add a path rule into the HTTPS listener rules. When I add the following path (rule priority 1):
/Staging_app*
and when I call
[Load Balancer URL]/Staging_app/index.html
it returns the index page but I get for every static resource (like javascript files, css files, pictures) a 404 response.
When I try to get the resources via:
[ECS Fargate Task dynamic IP]/resource.css
I get the resources.
When I try to add the following rule entry:
Path is /Staging_app* OR /Staging_app/* OR /Staging_app
I have the same problem.
The rule forwards to the ECS fargate service target group.