curv
curv

Reputation: 3844

AWS Load balancer force Wordpress URL to specific instance

I have a 'classic' load balancer configured that has two EC2 instances sitting beneath it. I also have a Wordpress DB hosted on a separate RDS instance.

After some research into maintaining a single Wordpress instance on multiple EC2 servers and keeping sync between the filesystem i.e. installing plugins etc seems to be a nightmare.

Is there a way to force a URL pattern (/wordpress/ --> EC2 server 1) to a specific instance so I don't have to maintain sync between filesystems?

Maybe there is a much simpler way?

Upvotes: 0

Views: 254

Answers (1)

Mark B
Mark B

Reputation: 200456

You will only run Wordpress on one of the instances? What is the other instance for then? Anyway, you can't do what you are asking with a classic load balancer. It is very easy to do with the newer Application Load Balancers though.

Upvotes: 1

Related Questions