Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Problem changing Bitbucket url

Kon Wag
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 15, 2018

My setup: I'm running Jira and Bitbucket [5.12.0] on my server (on same machine). I've tried to change the urls for both apps to be: 192.168.1.77:8080/jira and 192.168.1.77:7990/bitbucket

I've got a webserver setup that redirects traffic to these machines (using proxypass and proxypassreverse) as such:

ProxyPassReverse /jira http://192.168.1.77:8080/jira
ProxyPassReverse /bitbucket http://192.168.1.77:7990/bitbucket

ProxyPass /jira http://192.168.1.77:8080/jira
ProxyPass /bitbucket http://192.168.1.77:7990/bitbucket

I've updated server.xml (docBase path property) and set it to /jira

As a result, myserver.com/jira now works!

 

However I can't get my Bitbucket instance to launch under 192.168.1.77:7990/bitbucket. Instead, it is only available under 192.168.1.77:7990

I have updated the Base URL under Server Settings to www.myserver.com/bitbucket and this still doesn't work. It ends up being redirected to 192.168.1.77:7990/bitbucket - but I get an "oops, you've found a dead link" from bitbucket.

1 answer

0 votes
Kon Wag
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 16, 2018

I finally found what I was missing.

For some reason, the server.context-path was not being added or set in the bitbucket.properties file - even when I was changing it through the Base Path property under Server Settings in the UI.

All I had in that file was the jdbc driver details. Here is the link I followed: Moving Bitbucket Server to a different context path

Steps I took:

  1. Stopped Bitbucket
  2. Edited .../shared/bitbucket.properties to include line: `server.context-path=/bitbucket
  3. Restarted Bitbucket

And it now works!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events