How to change context path on Bitbucket 4.4?

Hi, 

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!

 

Sincerely,

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!

Sincerely,

X. Yang

 

 

Suggest an answer

Log in or Join to answer
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

654 views 0 4
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot