Impossible to create a new project

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

プラットフォームについて: Server および Data Center のみ。この記事は、Server および Data Center プラットフォームのアトラシアン製品にのみ適用されます。

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.

*Fisheye および Crucible は除く

問題

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.


診断

Diagnostic Steps

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

原因

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.

回避策

  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.


最終更新日 2018 年 6 月 15 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.