I have a S3 bucket hosting an angular application.
I have an AWS ALB to serve this S3 bucket containing the angular application.
But when I try to request the application through the ALB, it seems that I only can reach the files statically. I get this answer when I try to reach a page which is not directly a file on the bucket.
I've add a record on route53 redirecting on the load balancer (don't try the URL, it's only for the example) :
GET https://mywonderfulwebsite.domainname.tk/pages/2023-info-com
<Error>
<Code>NoSuchKey</Code>
<Message>The specified key does not exist.</Message>
<Key>2023-info-com</Key>
<RequestId>NDE03SVVQKVVX9CH</RequestId>
<HostId>DDMYXlkyhzhFDyYuCbCleOUN8TpWxN4MKJHJGU/gLOD9bNM21MiwrUsJYTnwMyEWdJHK6F=
</HostId>
</Error>
Of course if I request an existing file on the bucket I get it but without all dynamic elements.
GET https://mywonderfulwebsite.domainname.tk/index.html
#Return a blank page from the site.
I expected to get a fully functional angular app by requesting such URL, did I miss something ?