Having two websites on the same IIS server accessible with SSL certificates and URL Rewrite Enabled

Kaplan, Andrew H 226 Reputation points
2026-05-13T16:12:42.8333333+00:00

Hello.

I am running two websites on the same IIS server. Both sites go by the same URL, but the second one is accessible via port 10000. The respective URLs are the following:

<recovery.domain.com>

recovery.domain.com:10000

Recently I requested and received an SSL certificate for the parent server. The certificate has been bind(ed) to the first site. Additionally, the URL Rewrite module has been installed, and a rule that automatically redirects traffic from port 80 to port 443 has been set up for use. This rule is working for the first site.

The problem is the second site, which uses port 10000, is now inaccessible. Is it simply a matter of creating an additional URL Rewrite rule, or are there other steps that need to be done?

Windows development | Internet Information Services
0 comments No comments

2 answers

Sort by: Newest
  1. Tom Tran (WICLOUD CORPORATION) 5,785 Reputation points Microsoft External Staff Moderator
    2026-05-14T03:25:05.3766667+00:00

    Hi @Kaplan, Andrew H ,

    Thanks for sharing the details.


    I would first check the IIS bindings for the second site. This does not sound like something URL Rewrite alone would fix.

    If the second site is expected to work over HTTPS as:

    https://recovery.domain.com

    then that site needs its own HTTPS binding on port 10000 with the certificate assigned to that binding. The certificate bound to the first site on port 443 does not automatically apply to the second site on port 10000. Microsoft’s SSL setup guidance lists creating an HTTPS binding as part of configuring SSL for a site.


    The URL Rewrite rule may still be involved, especially if it redirects requests to the default HTTPS endpoint on port 443.

    Could you share:

    • the IIS bindings for both sites
    • the current URL Rewrite rule
    • whether the second site should be accessed as:

    http://recovery.domain.com:10000

    or:

    https://recovery.domain.com:10000

    That should help determine whether the issue is the HTTPS binding on port 10000, the rewrite rule behavior, or both.

    Was this answer helpful?


  2. AI answer

    2026-05-13T16:13:00.68+00:00

    Both sites can work, but the second site needs its own HTTPS binding and (optionally) its own rewrite/redirect behavior.

    Key points and steps:

    1. Configure HTTPS bindings for both sites
      • In IIS Manager, for Site 1 (port 443):
        • You already have an HTTPS binding on recovery.domain.com:443 with the new certificate.
      • For Site 2 (port 10000):
        • Decide how it should be accessed securely:
          • Either keep it as https://recovery.domain.com:10000 (HTTPS on 10000), or
          • Move it to a standard HTTPS port (443) with a different host name or IP.
        • If you want https://recovery.domain.com:10000:
          • Add a new HTTPS binding to Site 2 with:
            • Type: https
            • IP: the server IP (or All Unassigned)
            • Port: 10000
            • Host name: usually blank when using a non‑standard port
            • SSL certificate: select the same certificate (if it matches recovery.domain.com).
      • Without this HTTPS binding on port 10000, HTTP.sys will not listen on 10000 for TLS and the site will be unreachable over HTTPS.
    2. Ensure the HTTP (port 80) redirect does not capture traffic meant for port 10000
      • URL Rewrite rules work per site and per request, based on the URL/headers, not on the IIS site name.
      • If the redirect rule on Site 1 is too broad (for example, redirects all requests for recovery.domain.com regardless of port), browsers may never reach Site 2.
      • Typical safe pattern:
        • On Site 1 (port 80), have a rule that redirects http://recovery.domain.comhttps://recovery.domain.com (port 443).
        • On Site 2, either:
          • No redirect rule at all, or
          • A rule that redirects http://recovery.domain.com:10000https://recovery.domain.com:10000 only.
    3. Example of using URL Rewrite correctly
      • URL Rewrite is designed to transform URLs and perform redirects based on rules. For example, a rule can:
        • Redirect http://recovery.domain.com to https://recovery.domain.com.
        • Rewrite friendly paths to internal ones (e.g., /article/342/title/article.aspx?id=342&title=title).
      • Ensure rules are scoped to the correct site and do not unintentionally affect the second site’s traffic.
    4. Test the configuration
      • After adding the HTTPS binding for Site 2 and adjusting rules:
        • Restart IIS or recycle the sites.
        • Test:
          • http://recovery.domain.com → should redirect to https://recovery.domain.com (Site 1).
          • https://recovery.domain.com:10000 → should load Site 2 over HTTPS.
          • If using HTTP on 10000, test http://recovery.domain.com:10000 and, if desired, configure a separate redirect to https://recovery.domain.com:10000 in Site 2.

    If the second site still fails to load after adding the HTTPS binding on port 10000 and adjusting URL Rewrite rules, verify that the firewall allows port 10000 and that no other service is using that port.


    References:

    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.