Bitbucket サーバーを異なるコンテキスト パスに移動する
Bitbucket Server のコンテキスト パスの変更が必要となる理由にはさまざまなものが考えられます。そのうちの 2 つは次のようなものです。
- Bitbucket Server がプロキシの背後で実行されている場合。
- Bitbucket Server と同じホスト名とコンテキスト パスで利用可能な別のアトラシアン アプリケーションまたは Java web アプリケーションがあり、ログインの問題が発生している(「複数のアトラシアン アプリケーションでのログインとセッションの競合」を参照) 場合。
Bitbucket Server のコンテキスト パスを変更する方法
- Bitbucket Server ホーム ディレクトリに移動します。
- Bitbucket Server を停止します。「Bitbucket Server の開始および終了」をご参照ください。
Open the
shared/bitbucket.properties
file, and add theserver.context-path
property. Set it to reflect the context path that you want Bitbucket Server to be accessible at. For example, to set the context path to/bitbucket
you would add:server.context-path=/bitbucket
ファイルを保存します。
- Start Bitbucket Server. See Starting and stopping Bitbucket Server.
Bitbucket Server is now available at the same host as before, but under the new context path. For example, a server that was athttp://localhost:7990
will now be reachable athttp://localhost:7990/bitbucket
. 開始したら、管理領域で [設定] > [サーバー設定] をクリックします。新しいコンテキスト パスをベース URL に適用します。
https://localhost:7990/bitbucket
保存をクリックします。
重要な考慮事項
Bitbucket Server が Apache の背後で実行されている場合
- Bitbucket Server が公開されているホストまたはコンテキスト パスが、別のポートでリッスンしている別の Web アプリケーションで使用されていないことを確認する必要があります。
- 上記の手順を使用して Bitbucket Server のコンテキスト パスを更新した場合は、「Bitbucket Server を Apache HTTP Server と連携する」の記載に従って Apache 設定も更新する必要があります。
Bitbucket Server のコンテキスト パスを変更する前にアプリケーション リンクがセットアップされていた場合、新しい Bitbucket Server URL を使用してこれらを再度作成する必要があります。「Bitbucket Server を Jira とリンクする」を参照してください。
If you use SSH, the context path does not affect the URL at which SSH operations occur. After changing the context path so that Bitbucket Server is accessible at https://localhost:7990/bitbucket
, SSH operations occur without the context path at ssh://my-bitbucket-hostname:7999
.