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

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