I want to run multiple web apps(a.mydomain.com and b.mydomain.com) under my domain. My setup consists of an ELB and 2 EC2 instances(with Nginx-cloned and installed from git and php).
I bought a certificate for *.mydomain.com on ACM for the ELB. In the Nginx configuration, I added separate HTTP and https blocks for a and b apps. But, when both server blocks are added, I get the first page of each of the web apps after which a 404 error is thrown. When these apps are separately configured, they work as expected.
What is the Nginx configuration to be given in order to run multiple https web apps under one ELB?