Essentially, I need to know how to point one URL/folder to a web server and a different URL/folder to an EC2 app server. I'm trying to setup a SAAS with the following URL configuration.
www.mysite.com/ --> forward to www.mysite.com/site www.mysite.com/site --> company public page hosted on S3
All other URLs should point to EC2 servers where my SAAS is running on NGINX and PHP. How can I configure this? Ideally, I'd like the users accessing the company public page to avoid hitting the nginx servers and go directly to the S3 hosting. Is that possible? I'd like to use AWS Route53 and Cloudfront.