I want to configure an Application Gateway with multiple sites.
x1.contoso.com
x2.contoso.com
x3.contoso.com
...
I have a wildcard certificate for *.contoso.com
I only get a single subdomain to work when I set the custom hostname in the HTTP-Settings for example to x1.contoso.com. The Listener is configured for multisite and the hostnames with *.contoso.com. They all point to the same VM (CentOS, Apache)
The backend health check says that the CN of the backend cert does not match the host header in the health probe. But even if I put *.contoso.com as custom hostname in the HTTPS-Settings, or create a custom probe, no change. I read that my wildcard could need SANs, but that would make no sense, because I would need a new cert erverytime I want to add a new subdomain right? How can I get this to work?
Maybe you can help me.
Pascal