Hi,
After I setup the Apache as a reverse proxy, we are able to browse the bitbucket on the browser but unable to clone or push the code to bitbucket from command line.
Have added the following in the bitbucket.properties
server.secure=true
server.scheme=https
server.proxy-port=443
server.proxy-name=bitbucket.mydomain.com
Apache Configs:
<VirtualHost *:443 >
ServerName bitbucket.mydomain.com
SSLEngine on
SSLProtocol -all +TLSv1
# Disable week ciphers:
SSLCipherSuite HIGH:!MEDIUM:!aNULL:!MD5:!RC4
SSLCertificateFile /etc/httpd/certs/bb.crt
SSLCertificateKeyFile /etc/httpd/certs/bb.key
SSLCertificateChainFile /etc/httpd/certs/SecureServerCA.crt
SSLCACertificateFile /etc/httpd/certs/TrustedExternalCARoot.crt
ProxyErrorOverride On
ProxyRequests Off
ProxyVia Off
<Proxy *>
Require all granted
</Proxy>
ProxyPass / http://servername:7990/
ProxyPassReverse / http://servername:7990/
</VirtualHost>
<VirtualHost *:80>
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{SERVER_NAME}/$1 [R,L]
</VirtualHost>
Updated the base URL on the bitbucket server.
Am I missing anything?
Was anyone successful in setting up a proxy before BitBucket 5.0 and above? I can view the projects on the browser, but just can't pull or push to the repository.
I was able to setup Jira and Confluence behind the Apache, its just the bitbucket that has the problems.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Gayam,
What happens when you try to clone or push? Are you using HTTP to clone/push or SSH?
Cheers,
Christian
Premier Support Engineer
Atlassian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
We are using http to clone and push and all I see is the 502 error. The apache gives an
"error reading status line from remote server servername:7990"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
502 would indicate that there is an error in Bitbucket. Anything interesting in the Bitbucket log?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
One setting you're missing in the Bitbucket *server.port=7990*. If that does not work, you need to check the Apache ssl error or the error log.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
from the documentation since the default port is 7990 we don't need to mention this.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.