Home > Blockchain >  How do I point my AWS Elastic Beanstalk flask application to a folder in my domain example.com/app i
How do I point my AWS Elastic Beanstalk flask application to a folder in my domain example.com/app i

Time:10-06

I have an Elastic Beanstalk app I created which is up and running. I have a domain in Route 53 which currently only has a landing page. I don't want to replace the landing page, instead, I want the app to be accessible at example.com/app. Notice the app route at the end. How do I accomplish this in Route 53?

What I have tried so far:

  1. I managed to point it to the base domain level, that was easy. But that is not what I want, I still need the current site to be the main site and have the EBS app available on /app

  2. I managed to get it working on app.example.com, which again is not what I want

I still cannot figure out how to do this. Any help would be dearly appreciated. I am fairly new to AWS and routing and stuff.

CodePudding user response:

I think you should check out the documentation: https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/routing-to-beanstalk-environment.html

Best regards,

Vittorio

CodePudding user response:

You can't do this from Route53. R53 is DNS, and it does not have any notion of URL paths. Instead you can do this from CouldFront. Specifically, you would have to put a CF distro between your R53 and your EB. When you setup origin and its behaviour for your CF distro you can specify Path Pattern as /app.

  • Related