HTTP Error 500.51 when attempting to access Jira through IIS

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Symptoms

After following all the steps from Integrate Jira server and IIS with Application Request Routing, you are now getting the error HTTP error 500.51 - URL Rewrite Module Error when you attempt to access Jira through IIS.

(Auto-migrated image: description temporarily unavailable)

Cause

The error normally indicates a problem with the URL Rewrite's Pattern present in the rule.

Resolution

Make sure you have a URL Rewrite rule created as specified in step 4 from this article:

  1. Add a new URL Rewrite Rule for jira.example.com:

    1. From the IIS7 Console, click on jira.example.com and open URL Rewrite:

      (Auto-migrated image: description temporarily unavailable)
    2. From the Actions panel on the right hand side, select "Add Rules" and choose "Blank Rule";

    3. Set Match URL to:

      1. Requested URL: Matches the Pattern

      2. Using: Regular Expressions

      3. Pattern: (.*)

      4. Ignore Case: Checked

    4. Set Action to:

      1. Action Type: Rewrite

      2. Rewrite URL: http://<JIRA_url:Port>/{R:1}

      3. Append query string: Checked

    5. Mark Stop processing of subsequent rules:

      (Auto-migrated image: description temporarily unavailable)
  2. Restart IIS

NOTE: In some cases, the error will persist even after following the above steps, if that is happening to you,  it is possible you have a URL Rewrite Rule at the SERVER level.

  1. If that is your case, make the you change the Pattern to ".*" instead of "*".

  2. Or, you may choose to disable this rule, if not required. 

Updated on April 1, 2025

Still need help?

The Atlassian Community is here for you.