Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
up vote 4 down vote accepted

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.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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