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

See also JIRA application Startup and Shutdown Scripts.

Confluence

次のコマンドを Confluence のインストール ディレクトリで実行します。

bin/start-confluence.sh

bin/stop-confluence.sh

Windows の場合、次のコマンドを実行します。

bin\start-confluence.bat

bin\stop-confluence.bat

See also Starting Confluence Automatically on System Startup.

Bamboo Server

次のコマンドを Bamboo のインストール ディレクトリで実行します。

bin/start-bamboo.sh

bin/stop-bamboo.sh

Windows の場合、次のコマンドを実行します。

bin\start-bamboo.bat

bin\stop-bamboo.bat

See also Running Bamboo as a service.

Bitbucket Server

You should stop the service that is running Bitbucket. If you used the installer, the following should do it:

From a Linux environment:

# service atlbitbucket status
# service atlbitbucket stop
# service atlbitbucket start

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:

On Linux, use:

bin/start-bitbucket.sh
bin/stop-bitbucket.sh

Windows の場合、次のコマンドを実行します。

bin\start-bitbucket.bat
bin\stop-bitbucket.bat

See also Start and stop Bitbucket.

Fisheye

次のコマンドを Fisheye のインストール ディレクトリで実行します。

bin/start.sh

bin/stop.sh

Windows の場合、次のコマンドを実行します。

bin\start.bat

bin\stop.bat

See also Running Fisheye as a Windows service.

Crucible

次のコマンドを Crucible のインストール ディレクトリで実行します。

bin/start.sh

bin/stop.sh

Windows の場合、次のコマンドを実行します。

bin\start.bat

bin\stop.bat

See also Running Crucible as a Windows service.

Crowd

次のコマンドを Crowd のインストール ディレクトリで実行します。

/start_crowd.sh

/stop_crowd.sh

Windows の場合、次のコマンドを実行します。

\start-crowd.bat

\stop-crowd.bat

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 home directory>/shared/bitbucket.properties

server.xml のカスタマイズを bitbucket.properties に移行する方法」をご参照ください。

Bitbucket Server 4.0 〜 4.14

<Bitbucket home directory> /shared/server.xml

Stash 3.8 〜 3.11

<Stash home directory>/shared/server.xml

Stash 3.7 and earlier<install-path>/conf/server.xml
FisheyeThe Fisheye configuration file is config.xml, but see Configuring the Fisheye web server.
CrucibleFisheye と同様
Crowd

<install-path>/apache-tomcat/conf/server.xml

Note that crowd is predefined as the context path. Updating this requires several steps outlined by Removing the 'crowd' Context from the Application URL.

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

最終更新日 2025 年 4 月 18 日

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

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