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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jun 12, 2018 in Bitbucket

Do you use any Atlassian products for your personal projects?

After spinning my wheels trying to get organized enough to write a book for National Novel Writing Month (NaNoWriMo) I took my affinity for Atlassian products from my work life and decided to tr...

23,064 views 26 12
Join discussion

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