Forums

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

How to Run Bitbucket Server on Two Different Ports

Abdulkarim Itani July 1, 2019 edited

We want to run Bitbucket on two different ports simultaneously (http and https). How should I configure bitbucket.properties to do so

 

Bitbucket version: 6.4.0

OS: Windows Server

2 answers

1 accepted

1 vote
Answer accepted
Abdulkarim Itani July 1, 2019

I was looking for how to configure bitbucket.properties. And as I looked through the documentation. I found it.

 

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

server.additional-connector.1.port=7990

0 votes
Dave Theodore [Coyote Creek Consulting]
Community Champion
July 1, 2019

Use a reverse proxy server. It's the most secure method.  If Bitbucket listens on 80 & 443, it needs to run as "administrator" user, which can allow an attacker to take over the server. Atlassian has docs on setting up Apache and other popular reverse proxy servers to do this. The reverse proxy can run on the same server.

Curzon Dax March 31, 2020

I would still need two open ports on the server, wouldn't I?

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, mindful member, mindful member badge, atlassian community, community kudos, community giveaway, atlassian swag, community values, empathy and kindness, badge challenge, atlassian learning, community engagement, swag giveaway

Earn a Badge, Win a Prize 🎁

Earning the Mindful Member badge proves you know how to lead with kindness, plus it enters you into a giveaway for exclusive Atlassian swag. Take the quiz, grab the badge, and comment on our announcement article to spread the good vibes!

Start here
AUG Leaders

Atlassian Community Events