Impossible to create a new project

Still need help?

The Atlassian Community is here for you.

Ask the community

Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.

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

Problem

When creating a new project in JIRA, we get the following error message, even though the Project key is written is all capital cases.

Project keys must start with an uppercase letter, followed by one or more uppercase alphanumeric characters.


Diagnosis

Diagnostic Steps

  • JIRA is running behind an IIS reverse proxy using AAR.

Cause

The standard documentation Integrate Jira server and IIS with Application Request Routing seems to be incomplete and is not mentioning the variables HTTP_X_xxxx that need to be set in the JIRA IIS website web.config files.

Workaround

  1. Need to set preserveHostHeader proxy configuration to false

    C:\Windows\system32\inetsrv\appcmd.exe set config -section:system.webServer/proxy -preserveHostHeader:true
  2. Allow HTTP_X_xxxx server variables for URL Rewriting configurations, and add those to the rewrite rules (see sample web.config file for Confluence onhttp://pastebin.com/wSwcrbSr)
  3. First, Allow server variables to be used so you don't get 500 Error about them not being permitted. See the "Allow Server Variables to be Changed" section on this page:
    http://www.iis.net/learn/extensions/url-rewrite-module/setting-http-request-headers-and-iis-server-variables
    1. Goto IIS root level in IIS Manager > URL Rewrite > View Server Variables
    2. Add the following
      1. HTTP_X_ORIGINAL_HOST
      2. HTTP_X_FORWARDED_HOST
      3. HTTP_X_FORWARDED_SERVER

  4. Next, add sections like this to your JIRA IIS website web.config files:

    <rule name="reverseproxy" stopProcessing="true">
      <match url="(.*)" />
      <action type="Rewrite" url="http://jira.domain.com:8090/{R:1}" />
      <serverVariables>
        <set name="HTTP_X_ORIGINAL_HOST" value="confluence.domain.com" />
        <set name="HTTP_X_FORWARDED_HOST" value="confluence.domain.com" />
        <set name="HTTP_X_FORWARDED_SERVER" value="confluence.domain.com" />
      </serverVariables> </rule>
  5. In the Application Request Routing proxy setup screen that you go through in the Atlassian instructions, un-check the Reverse rewrite hose in response headers checkbox.


Last modified on Jun 15, 2018

Was this helpful?

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