Site Address and WordPress Address settings when using a load balancer

When they say “where core files reside” they are referring to the url where they can be reached. Since you’re using a load balancer, you want those requests to be split across both your servers.

To configure WordPress in a load balanced environment, you need to configure a couple of settings. I like to do this directly in the DB since doing them 1 at a time through the gui will often prevent you from being access the other settings until they are all set.

In the wp_options table, set the following to the DNS address of your load balancer.

  1. siteurl
  2. home

Note, if your wordpress files are located in a sub-directory (e.g. /wordpress) then the siteurl should be set to the dns name of the load balancer followed by the path to the wordpress directory.

Keep in mind, you will also have to mirror your wp-content directory between your servers somehow. Some people will use some kind of cloud file storage for this (e.g. AWS S3), but there are other ways as well.