hosting multiple domain with tls termination in application gatway

Gaurav Kumar 0 Reputation points
2024-06-05T18:35:11.52+00:00

we already have 2 multisite listener with *.domain1.com with SSL wild card certificate, routing traffic to internal APIM.

now we have a requirement for adding another listener with *.domain2.com with wild card ssl cert *.domain2.com

while browing site1.domain2.com app gateway is presenting SSL cert from domain1.com and not from domain2.com as it is configured.

Azure Application Gateway
Azure Application Gateway
An Azure service that provides a platform-managed, scalable, and highly available application delivery controller as a service.
1,007 questions
Azure Startups
Azure Startups
Azure: A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.Startups: Companies that are in their initial stages of business and typically developing a business model and seeking financing.
240 questions
{count} votes

1 answer

Sort by: Most helpful
  1. ChaitanyaNaykodi-MSFT 24,656 Reputation points Microsoft Employee
    2024-06-12T22:42:20.7333333+00:00

    @Gaurav Kumar

    I'm glad that you were able to resolve your issue and thank you for posting your solution so that others experiencing the same thing can easily reference this! Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others ", I'll repost your solution in case you'd like to "Accept " the answer.

    Issue:

    You have 2 multisite listeners configured with a wild a wildcard SSL certificate but when request for 2nd wildcard domain is received application gateway is serving the SSL certificate of 1st wildcard domain

    Solution:

    The issue faced here was due to request routing rule was set-up incorrectly and when you set-up the correct routing rules the issue was resolved.

    If you have any other questions or are still running into more issues, please let me know. Thank you again for your time and patience throughout this issue.

    Please remember to "Accept Answer" if any answer/reply helped, so that others in the community facing similar issues can easily find the solution.

    0 comments No comments