HTTP Error 500.51 when attempting to access Jira through IIS

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.

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:
    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;
  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. 



Last modified on Jun 22, 2023

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.