The standard SSL certificate applies only to server in its CN (common name) field.
There is an extension Subject Alternative Name (18.104.22.168), which allows the certificate to be valid for more than one host. It cold be very helpful in such complex server environments.
Note that the client software have to be aware of the Subject Alternative Name (22.214.171.124), otherwise it would identify it as invalid. New browsers seem to be compatible.