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. |
Changing the context path for Stash:
- Navigate to the directory where you are running Stash from. This is the install directory that you extracted the Stash distribution to, not your Stash home directory.
- Stop Stash. This can be done using
bin/stop-stash.baton Windows orbin/stop-stash.shon OSX or Linux. Edit
conf/server.xmland find the element below:<Context path="" docBase="${catalina.home}/atlassian-stash" reloadable="false" useHttpOnly="true"/>Update the
pathattribute 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.
- Start Stash. This can be done using
bin/start-stash.baton Windows orbin/start-stash.shon OSX or Linux.
Stash should now be available at the same host as before under the new context path. For example a server that was at http://localhost:7990 will now be reachable at http://localhost:7990/stash. Once Stash has started, navigate to Administration > Settings (or General Settings in Stash 1.0.x), add 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:
|