Search code examples
amazon-web-servicesamazon-ec2dnsamazon-route53

Route a specific path to a specific EC2 instance using Route 53


I'm not sure if this is even possible, but if so I'm looking for the best way to do it.

Say I want to host my blog for example.com on it's own EC2 instance, and I want the path to my blog to be example.com/blog

Is it possible to route all requests to example.com/blog/* to one instance, and all other requests to that domain elsewhere?

My web server is Apache.

Thanks!


Solution

  • You can now do this with Application Load Balancer and path-based routing: https://docs.aws.amazon.com/elasticloadbalancing/latest/application/tutorial-application-load-balancer-cli.html#path-based-routing-aws-cli