I was wondering if the following is possible with AWS offerings?
https://www.example.com/a/
-> served by Apache on EC2 Instance A
https://www.example.com/b/
-> served by Apache on EC2 Instance B
To clarify, I do not want files under one directory path to be on the same server instance as files under the other directory path.
I understand this may be possible with a proxy of some sort, but is there an easier solution with one of AWS offerings.
The EC2 Load Balancer does not seem to allow switching based on directory path. Route 53 works at the DNS level, which does not have path information to return IPs based on that.
Host:
headers and filter out bogus traffic. It seems unlikely they will add any features like you're asking for if looking at headers is too much work for them. Mercifully they have other options.