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 ie 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?
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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.