Can I have Bitbucket and Jira on the same server with SSL on both?

I have Jira and Bitbcuket on the same server and need to turn on SSL for each. I have successfully enabled it for JIRA and am able to browse over https. However for Bitbucket I am not able to do so. I changed the port in the server.xml file for bitbucket to 9443 so that Jira and it dont have the same ports. It does not seem to work though for bitbucket. Am I able to run them both on the same server with SSL? Did I miss a spot to change the ssl port bitbucket?

1 answer

0 vote

Hi Chris,

Which version of Bitbucket Server are you using, how did you make the change, and what happens after you've made the change?

Cheers,

Christian

Premier Support Engineer

Atlassian

1. Bitbucket - 5.2.2

2. Opened up the server.xml underneath the bitbucket directory and changed the connector for ssl from 8443 to 9443. Restarted the service. 

3. When trying to browse I get the site cannot be reached.

Its not obvious that you cannot change the port in server.xml for bitbucket so I`ll not use the RTFM today :)

https://confluence.atlassian.com/bitbucketserver052/changing-the-port-that-bitbucket-server-listens-on-935363347.html

 

-Lars

Hi Lars - I did see that and tried that as well however I get a ERR_SSL_PROTOCOL_ERROR. 

I reviewed the documentation (I promise) multiple times and I guess i could still be missing something but I am just not seeing it. :)

server.port=8443

server.ssl.enabled=true
server.ssl.key-store=/path/to/keystore/bitbucket.jks server.ssl.key-store-password=<password value> server.ssl.key-password=<password value>

Accoring to this article:

https://confluence.atlassian.com/bitbucketserver052/securing-bitbucket-server-with-tomcat-using-ssl-935363366.html

 

Concider adding a proxy (like apache, nginx, iis etc) to give your users a clen url like https://bitbucket.example.com  

Hello - Sorry for the delayed response on this. I did figure it out after finding this documentation on another forum. I am now able to get both running over https. Thank you everyone for the assistance.

 

https://confluence.atlassian.com/bitbucketserver/migrate-server-xml-customizations-to-bitbucket-properties-897811761.html?_ga=2.22835635.901541092.1502715907-574726294.1496347560 

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...

22,309 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