[Other doc versions]
[Doc downloads (PDF, HTML, XML)]
There are various reasons why you may wish to change the context path for Stash. Two of those are:
Upgrade Note
Since the manual steps of this process modify the Stash distribution, you will need to repeat Steps 1-6 each time you upgrade Stash. See the Stash upgrade guide.
Changing the context path for Stash:
bin/stop-stash.bat
on Windows or bin/stop-stash.sh
on OSX or Linux.Edit conf/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.
bin/start-stash.bat
on Windows or bin/start-stash.sh
on OSX or Linux.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
Click Save.
Stash + Apache
Note that if you are running Stash behind Apache:
Application Links
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.