[Other doc versions]
There are various reasons why you may wish to change the context path for Stash. Two of those are:
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.baton Windows or
bin/stop-stash.shon OSX or Linux.
conf/server.xml and find the element below:
path attribute to reflect the context path that you want Stash to be accessible at, e.g. "/stash":
Then save the file.
bin/start-stash.baton Windows or
bin/start-stash.shon 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:
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.
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