I’m working on a little EmberJS project that i want to host on AWS. I have been fiddling with setting it up correctly but so far i’m not really happy with how everything works.
Initially i tried to set up everything behind one primary domain name (something.com), with different parts of the setup separated out via CloudFront Origins (something.com/api, …). Unfortunately this does not play nicely with how it’s recommended to set up the routing (S3 or CloudFront custom error responses).
Now i switched to separating everything out via sudomains (api.something.com, …), which works nicely. Is this really the only way to get it working without adding some additional logic layer (nginx etc) before the application?