[Other doc versions]
[Doc downloads]
There are various reasons why you may wish to change the context path for Stash. Two of those are:
Upgrade Note
Note that the location of server.xml
changed in Stash 3.8. See the Stash upgrade guide.
Changing the context path for Stash:
Edit <Stash home directory>/shared/server.xml
and find the element below:
<Context path="" docBase="${catalina.home}/atlassian-stash" reloadable="false" useHttpOnly="true"/>
Update the path
attribute to reflect the context path that you want Stash to be accessible at, e.g. "/stash":
<Context path="/stash" docBase="${catalina.home}/atlassian-stash" reloadable="false" useHttpOnly="true"/>
Then save the file.
Once Stash has started, go to the administration area and click Server settings (under 'Settings'). Append the new context path to your base URL:
https://my-stash-hostname:7990/stash
保存をクリックします。
Stash + Apache
Note that if you are running Stash behind Apache:
アプリケーション リンク
If you had Application Links set up before changing the context path in Stash, you will have to recreate those using the new Stash URL. See Linking Stash with JIRA.
ssh
The context path does not affect the URL at which SSH operations occur. After changing the context path so that Stash is accessible at https://my-stash-hostname:7990/stash
, SSH operations occur without the context path at ssh://my-stash-hostname:7999
.