We're moving from a single EC2 server setup to a multiple-webserver setup, and using ELB to spread traffic across the servers.

Our core application will handle this just fine. There's one sub directory that hosts a different application, and I'd like all requests for that application to go to a specific server.

Is this possible with ELB?


Amazon's ELB operates at the IP level, it doesn't care about the protocol running on top.

What you're looking for is a HTTP reverse proxy. You could run another two EC2 instances with something like Apache, Nginx or Varnish to decides which back end instances to use based on the directory structure. Then you could use ELB to balance between these.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.