title: Issues with configuration of Bitbucket Server with HTTPS reverse proxy using Tomcat
body: <p>I'm trying to install some Atlassian products (Bitbucket Server, Jira, Confluence etc.) on my VPS with using HTTPS. Every product should be available on their own subdomain e.g. <code>https://bitbucket.mydomain.de</code> or <code>https://jira.mydomain.de</code> I tried many things but now I'm very confused. It always redirect me to the Tomcat-GUI instead of my installed Bitbucket Server application. Maybe managing the ports is too confusing for me.</p>
  
  <p>Three configuration files are involved - Tomcats <code>server.xml</code>, Apaches <code>mydomain.conf</code> file and Bitbuckets <code>bitbucket.properties</code> configuration.</p>
  
  <p>I've tried to use an own Bitbucket Connector in Tomcat, while using an reverse Proxy in Apache. Here are some of my files.</p>
  
  <p>Apaches <code>mydomain.conf</code></p>
  
  <pre><code>&lt;VirtualHost *:443&gt;
      ServerName bitbucket.mydomain.de
      ServerAlias bitbucket.mydomain.de
  
      ProxyRequests Off
  
      &lt;Proxy *&gt;
          Require all granted
      &lt;/Proxy&gt;
  
      ProxyPass / http://bitbucket.mydomain.de:7990/
      ProxyPassReverse / http://bitbucket.mydomain.de:7990/
  
      SSLEngine on
      SSLCertificateFile /etc/ssl/certs/mydomain_ssl_certificate.cer
      SSLCertificateKeyFile /etc/ssl/private/mydomainprivate_key.key
      SSLCertificateChainFile /etc/ssl/certs/mydomain_ssl_certificate_intermediate.cer
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>Bitbuckets <code>bitbucket.properties</code></p>
  
  <pre><code>server.port=7990
  server.secure=true
  server.scheme=https
  server.proxy-port=443
  server.proxy-name=bitbucket.mydomain.de
  </code></pre>
  
  <p>And Tomcats <code>server.xml</code></p>
  
  <pre><code>&lt;Server port="8005" shutdown="SHUTDOWN"&gt;
      &lt;...&gt;
      &lt;Service name="Catalina"&gt;
          &lt;!-- Default Connector --&gt;
          &lt;Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443"/&gt;
  
          &lt;!-- Bitbucket Connector --&gt;
          &lt;Connector port="7990" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="443" compression="on" compressableMimeType="text/html,text/xml,text/plain,text/css,application/json,application/javascript,application/x-javascript"
              secure="true" scheme="https" proxyName="bitbucket.mydomain.de" proxyPort="443" /&gt;
  
          &lt;!-- SSL Connector --&gt;
          &lt;Connector port="8443" maxHttpHeaderSize="8192" maxThreads="150" minSpareThreads="25" maxSpareThreads="75" enableLookups="false"
              disableUploadTimeout="true" acceptCount="100" scheme="https" secure="true" clientAuth="false" sslProtocol="TLS" keyAlias="tomcat"
              SSLEnabled="true" keystoreFile="keystore/mydomain-keystore.jks" keypass="mypass" keystoreType="JKS"/&gt;
      &lt;/Service&gt;
  &lt;/Server&gt;
  </code></pre>
  
  <p>Actually, it shows me on <code>bitbucket.mydomain.de</code> every single time the Tomcat GUI instead of Bitbucket.. and I can't explain why. What am I missing? I think the whole <code>server.xml</code> is misconfigured... </p>
  
  <p>Thanks a lot for every help!</p>