JIRA, Third party SSL, Redirect on CentOS
<p>I have the following situation:</p>

<ol>
<li>JIRA installed on a VPS (CentOS 5)</li>
<li>I am able to access jira at <a href="http://www.example.com:8080" rel="nofollow">http://www.example.com:8080</a></li>
<li>Third party SSL installed on https:/www.example.com</li>
<li>A subdomain <a href="http://jira.example.com" rel="nofollow">http://jira.example.com</a></li>
</ol>

<p>What I want to do is the following:</p>

<p>a. To redirect all http to https
b. JIRA (on 8080) to work on https
c. jira.example.com to redirect to <a href="https://www.example.com:8080" rel="nofollow">https://www.example.com:8080</a></p>

<p>I can achieve (a) but fail with (b) and (c) although I have followed Atlassian's guide.</p>

<p>This is the code for the connector in server.xml</p>

<pre><code>    &lt;Connector port="8080"

               maxThreads="150"
               minSpareThreads="25"
               connectionTimeout="20000"

               enableLookups="false"
               maxHttpHeaderSize="8192"
               protocol="HTTP/1.1"
               useBodyEncodingForURI="true"
               redirectPort="8443"
               acceptCount="100"
               disableUploadTimeout="true"

               scheme="https" 
               proxyName="jira.example.com" 
               proxyPort="443" 
               secure="true"

                /&gt;
</code></pre>

<p>What I haven't figured out is how to configure the virtual host. Do I need VH for port 443? or 80 (for jira.example.com)</p>

<p>I have read a guide from Atlassian about how to use SSL but that guide generates a CSR and then acquires the SSL. I now have my SSL, so how can I use it? I don't have the required files as shown in the guide.</p>

<p>This is my VH code (taken from jira docs):</p>

<pre><code>&lt;VirtualHost *:443&gt;
   ServerName jira.example.com

   ProxyRequests Off
   ProxyVia Block
   ProxyPreserveHost On

   &lt;Proxy *&gt;
        Require all granted
   &lt;/Proxy&gt;

   ProxyPass / https://www.example.com:8080/     &lt;--- If https works
   ProxyPassReverse / https://www.example.com:8080/
&lt;/VirtualHost&gt;
</code></pre>

<p>Any ideas? Thanks</p>