Hello, I am running a latest Bitbucket server on an ubuntu server behind an apache with mod_proxy and an SSL certificate. I configured the connector of tomcat, that it works. Unfortunaly I get this message at the top of the frontend: Sie greifen auf Bitbucket von einer URL zu, die nicht mit der konfigurierten Basis-URL übereinstimmt. Sie haben die Möglichkeit das zu ändern .
In the backend there is the right base url defined.
Can anyone help me please?
Thank you very much
Since you're terminating the SSL connection at the Apache server, Tomcat will receive the requests over HTTP. This HTTP vs HTTPS difference is most likely the cause of the base-url warning.
Make sure you have configured the secure
, scheme
, proxyName
and proxyPort
attributes on the Connector
element in your server.xml
as described in https://confluence.atlassian.com/display/BitbucketServer/Securing+Bitbucket+Server+with+Apache+using+SSL
That are my Connectors:
<Connector port="7990" protocol="HTTP/1.1"
connectionTimeout="20000"
useBodyEncodingForURI="true"
redirectPort="8443"
compression="on"
scheme="http"
proxyName="git.floriansturm-webdesign.de"
proxyPort="80"
compressableMimeType="text/html,text/xml,text/plain,text/css,application/json,application/javascript,application/x-javascript" />
<Connector port="8443"
protocol="org.apache.coyote.http11.Http11NioProtocol"
maxThreads="150"
SSLEnabled="true"
scheme="https"
secure="true"
clientAuth="false"
sslProtocol="TLS"
proxyName="git.floriansturm-webdesign.de"
proxyPort="443" />
VirtualHost *:443>
ServerName git.floriansturm-webdesign.de
SSLCertificateFile /etc/myssl/floriansturm-webdesign.de.crt
SSLCertificateKeyFile /etc/myssl/privkey.pem
ProxyPass / http://localhost:7990/
ProxyPassReverse / http://localhost:7990/
</VirtualHost>
Is that right?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I think you're missing the secure="true"
attribute and on the 7990 Connector
. You also need to set the scheme
attribute to https
(instead of http
)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
anything else is correct? Im right, that I need these two connectors?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I changed it, but the message still appears:
<Connector port="7990" protocol="HTTP/1.1"
connectionTimeout="20000"
useBodyEncodingForURI="true"
redirectPort="8443"
compression="on"
scheme="https"
secure="true"
proxyName="git.floriansturm-webdesign.de"
proxyPort="80"
compressableMimeType="text/html,text/xml,text/plain,text/css,application/json,application/javascript,$
<Connector port="8443"
protocol="org.apache.coyote.http11.Http11NioProtocol"
maxThreads="150"
SSLEnabled="true"
scheme="https"
secure="true"
clientAuth="false"
sslProtocol="TLS"
proxyName="git.floriansturm-webdesign.de"
proxyPort="443" />
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
did you restart Bitbucket after updating server.xml
?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, of course
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Florian,
ich habe das selbe Problem. Konntest du es inzwischen lösen?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, this entry helped me:
Hope this helps.
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.