Forums

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

Set apache reverse proxy for bitbucket https

plp29
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!
October 16, 2019

environnment;

Red Hat Enterprise Linux Server release 6.5

Bitbucket 6.4.3

Apache/2.2.15

 

I have to switch to https.
I followed the procedure to create the certificate with keytool. I modified the bitbucket.properties file accordingly and it works.
Now I want to use the apache proxy reserve but it doesn't work.

 

if you have any ideas

 

Regards

 

see below the file configuration

***********************************************

bitbucket.properties

server.port=8443
server.ssl.enabled=true
server.ssl.key-store-password=xxxxxx
server.ssl.key-password=xxxx

server.connection-timeout=20000
server.secure=true
server.compression.enabled=true
server.scheme=https
server.displayName=Atlassian Bitbucket test ALE
server.compression.mime-types=text/css,text/html,text/javascript,text/json,text/plain,text/xml,text/x-javascript,application/javasript,application/json,appl
ication/x-javascript,application/vnd.git-lfs+json
server.proxy-name=bitbucket-tst.app.ale-international.com
server.proxy-port=8443
feature.public.access=false

 

conf.d/bitbucket.conf

# Proxy Server directives. Uncomment the following lines to
# enable the proxy server:
#
<IfModule mod_proxy.c>
ProxyRequests On
#
# Order deny,allow is the default
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
#
# Enable/disable the handling of HTTP/1.1 "Via:" headers.
# ("Full" adds the server version; "Block" removes all outgoing Via: headers)
# Set to one of: Off | On | Full | Block
#
ProxyVia On

#
# To enable a cache of proxied content, uncomment the following lines.
# See http://httpd.apache.org/docs/2.2/mod/mod_cache.html for more details.
#
<IfModule mod_disk_cache.c>
CacheEnable disk /
CacheRoot "/app/cache/mod_proxy"
</IfModule>

NameVirtualHost *:8443
<VirtualHost *:8443>

ServerName server-test

SSLEngine On

ProxyPass / http://server-test:7990/ connectiontimeout=5 timeout=300
ProxyPassReverse / http://server-test:7990/
RewriteEngine on
ProxyRequests Off

</VirtualHost>

</IfModule>

******************************************************

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events