title: Routing to cloudfront via ELB and to EKS container by path
body: <p>I currently have an API backend deployed as a pod inside EKS which I exposed it through using ELB via kubernetes service, and an AngularJS frontend hosted in S3 delivered through Cloudfront, which calls the API. </p>
  
  <p>Is there any way that I could have frontend and backend as <strong>domain.com</strong> and <strong>domain.com/api</strong> respectively with the current setup?</p>
  
  <p>The only other way I could think of is not using Cloudfront to host the AngularJS frontend, but instead dockerize it and deploy as a pod in the same cluster as the backend API but I am just wondering if there is a way that I could use Cloudfront (or any other services or ways) to do some kind path-based proxying to decide which end it should redirect.</p>
  
  <p>Thanks in advance.</p>