How to change context path on Bitbucket 4.4?


I have just install Bitbucket server 4.4.1 and all work fine. I'd like to change context path from root (like http://localhost:7990) to bitbucket (like http://localhost:7990/bitbucket) in order to integrate it with Nginx. All the documentation I found was to change shared/server.xml, but I could not find this file. Also I tried to change config/.default-server.xml or scripts.conf file context section, none of them working. 


Would you please help me the correct way to setup the context?


Thank you!



X. Yang

1 answer

1 accepted

Are you on Mac, Windows, or Linux?  You should find "server.xml" in your Bitbucket data directory (e.g., ~/application-data/bitbucket/shared/server.xml in my Linux install).  

The "server.xml" file is NOT kept inside the Bitbucket install dir.   Instead you must find the data dir.  The Bitbucket data dir is generally left alone during upgrades, so that's why "server.xml" goes there (so that upgrades would not clobber any values you previously set).


p.s.  be sure to try out my Commit Graph And More add-on.  It's the best commit graph add-on for Bitbucket Server. Dramatically improves your team's ability to see exactly what's happening in your Git repositories. Don't forget to enable the included Protect-First-Parent hook to prevent foxtrot merges in master.

Dear Sylvie,

Thank you very much for help! All work fine now! Also thank you for the recommendation of Bit-Booster Commit Graph and More!


X. Yang



Suggest an answer

Log in or Sign up to answer
Community showcase
Published Mar 14, 2019 in Bitbucket Pipelines

Building a Bitbucket Pipe as a casual coder :  #!/bin/bash source "$(dirname "$0")/" enable_debug extra_args="" if [[ "${DEBUG}" == "true" ]]; then extra_args="--verbose" fi # mandatory variables R...

257 views 0 12
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you