Forums

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

Apache + BitBucket HTTPS URL ProxyPass issue

RBDev July 18, 2019

Hi all,

 

I have the following environment.

 

https://mydomain.com/bitbucket >> APACHE >> http://localhost:7990 >> BITBUCKET

 

bitbucket.properties

server.context-path=/bitbucket

 

apache.conf

<Location "/bitbucket">

 Require all granted

 ProxyPreserveHost on

 ProxyRequests       off

 ProxyVia                  off

 ProxyPass               http://localhost:7990/bitbucket

 ProxyPassReverse http://localhost:7990/bitbucket

</Location>

 

Server Settings

Base URL: https://mydomain.com/bitbucket

 

It works but bitbucket gets confused. He thinks he is working under http and sets the website links to http://mydomain.com/bitbucket therefore loosing ssl.

I'm probably missing some settings somewhere. Does anyone know how to sort this?

 

Cheers

1 answer

0 votes
Alexis Robert
Community Champion
July 19, 2019

Hi @RBDev , 

 

a couple things to check :

  • did you change the Bitbucket Base URL to https ? documentation here
  • can you show the full Apache vhost configuration, not just the ProxyPass ?

 

I'm guessing one of those is not set properly and that's why you're getting http requests.

 

Let me know if this helps, 

 

--Alexis

RBDev July 19, 2019

Hi @Alexis Robert ,

1) Yes. (this info is in the post).

2) ProxyPass is working (necessary info is in the post).

Alexis Robert
Community Champion
July 19, 2019

Hi @RBDev , 

 

did you update your bitbucket.properties file with the proper SSL configuration : 

  • server.secure=true
  • server.scheme=https
  • server.proxy-port=443
  • server.proxy-name=mydomain.com
RBDev July 19, 2019

I didnt because SSL is configured at the apache server. 

In theory, the connection between apache and bitbucket is http.

But I will try.

RBDev July 19, 2019

I've added bellow to the bitbucket.properties and it worked.

  • server.scheme=https

 

Cheers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events