Set a context path for Atlassian applications
This document outlines the steps if you wish that your Atlassian application to be accessed on a context path, such as http://ourcompany.com/<contextpath>
.
For Confluence, please refer to the Configuring the Server Base URL product documentation.
1. アトラシアン アプリケーションを停止する
Jira アプリケーション | 次のコマンドを Jira のインストール ディレクトリで実行します。 bin/start-jira.sh bin/stop-jira.sh Windows の場合、次のコマンドを実行します。 bin\start-jira.bat bin\stop-jira.bat |
Confluence | 次のコマンドを Confluence のインストール ディレクトリで実行します。
Windows の場合、次のコマンドを実行します。
See also Starting Confluence Automatically on System Startup. |
Bamboo Server | 次のコマンドを Bamboo のインストール ディレクトリで実行します。
Windows の場合、次のコマンドを実行します。
See also Running Bamboo as a service. |
Bitbucket Server | From a Linux environment:
From a Windows environment, just stop the service that is running Bitbucket server. Alternatively, you can use these commands from the Bitbucket installation directory to manually stop the process: bin/start-bitbucket.sh bin/stop-bitbucket.sh bin\start-bitbucket.bat bin\stop-bitbucket.bat |
Fisheye | 次のコマンドを Fisheye のインストール ディレクトリで実行します。
Windows の場合、次のコマンドを実行します。
See also Running Fisheye as a Windows service. |
Crucible | 次のコマンドを Crucible のインストール ディレクトリで実行します。
Windows の場合、次のコマンドを実行します。
See also Running Crucible as a Windows service. |
Crowd | 次のコマンドを Crowd のインストール ディレクトリで実行します。
Windows の場合、次のコマンドを実行します。
See also Installing Crowd as a Windows Service. |
2. コンテキスト パスを設定する
Fisheye および Crucible
FishEye または Crucible をプロキシする場合、管理領域から Jetty の Web コンテキスト パスを設定します。「Fisheye の web サーバーを設定する」を参照してください。
JIRA applications, Bitbucket Server, Bamboo
これらのアトラシアンのサーバー アプリケーションのいずれかをプロキシする場合、Tomcat の server.xml
ファイルでコンテキスト パスを次のように設定します。
The location of your server.xml
file depends on your application, operating system, and installation location.
アトラシアン アプリケーションで共通の既定のインストール先は、次のとおりです。
- Linux:
/opt/atlassian/<application-name>
- Windows:
C:\Program Files\Atlassian\<application-name>
- Windows:
C:\Atlassian\<application-name>
The default locations of server.xml
files for Atlassian applications are:
アプリケーション | server.xml の場所 |
---|---|
Jira アプリケーション | <install-path>/conf/server.xml |
Confluence | <install-path>/conf/server.xml |
Bamboo | <install-path>/conf/server.xml |
Bitbucket 5.0 以降 | N/A, replaced by |
Bitbucket Server 4.0 〜 4.14 |
|
Stash 3.8 〜 3.11 |
|
Stash 3.7 and earlier | <install-path>/ conf/server.xml |
Fisheye | The Fisheye configuration file is config.xml , but see Configuring the Fisheye web server. |
Crucible | Fisheye と同様 |
Crowd |
Note that |
<install-path>
refers to where the application was installed on your system.
Tomcat の server.xml
設定ファイルには、次のような Context
ディレクティブがあります (Crowd を除く)。
<Context path="" docBase="${catalina.home}/atlassian-<atlassianapp>" reloadable="false" useHttpOnly="true">
ディレクティブを変更して、新しいコンテキスト パスを追加します。
<Context path="/<contextpath>" docBase="${catalina.home}/atlassian-<atlassianapp>" reloadable="false" useHttpOnly="true">
<contextpath
> には独自の値を使用します。一般に、各アプリケーションで異なるコンテキスト パスを使用します。
path
の値の先頭では path="<contextpath>"
ではなく path="/<contextpath>"
のように、スラッシュ (/
) が必要です。
Use these instructions to Removing the 'crowd' Context from the Application URL.
Note: You can't use /resources
as your context path for Confluence, as this is used by Confluence, and will cause problems later on.