title: Jira behind Apache https proxy redirect
body: <p>I have a jira server setup using tomcat and apache.  When I type in the url jira.example.com it brings me to <a href="https://jira.example.com//secure/Dashboard.jspa" rel="nofollow">https://jira.example.com//secure/Dashboard.jspa</a> and I get dashboard errors because of the url.  If I type in jira.example.com:8080 it brings me to the correct url.  <a href="http://jira.example.com:8080/secure/Dashboard.jspa" rel="nofollow">http://jira.example.com:8080/secure/Dashboard.jspa</a>  Any ideas where the issue might be?</p>
  
  <pre><code>&lt;IfModule mod_proxy.c&gt;
  ProxyRequests On
  
  &lt;VirtualHost *:80&gt;
          ServerName jira.example.com
          ServerAlias jira jira.c11.example.com
          ProxyPreserveHost On
          ProxyRequests Off
          ProxyPass / http://localhost:8080/
          ProxyPassReverse / http://localhost:8080/
          ProxyTimeout 60
          RewriteEngine On
          RewriteCond %{SERVER_PORT} 80
          RewriteRule ^(.*)$ https://jira.example.com/$1 [R,L]
          ErrorLog /var/log/httpd/jira.example.com-error_log
          CustomLog /var/log/httpd/jira.example.com-access_log combined
  &lt;/VirtualHost&gt;
  
  &lt;VirtualHost *:443&gt;
     ServerName jira.example.com
     ServerAlias jira jira.c11.example.com
       ServerSignature On
       SSLEngine on
       SSLCertificateFile    /etc/httpd/conf/ssl.crt/star.example.com.crt
       SSLCertificateKeyFile /etc/httpd/conf/ssl.key/star.example.com.key
       SSLCertificateChainFile /etc/httpd/conf/ssl.crt/thawte_chain_bundle.crt
       SetEnvIf User-Agent .*MSIE.* nokeepalive ssl-unclean-shutdown
      ErrorLog /var/log/httpd/ssl-jira.example.com-error_log
      CustomLog /var/log/httpd/ssl-jira.example.com-access_log combined
      SSLProxyEngine on
      &lt;Proxy *&gt;
              Order deny,allow
              Allow from all
              #Allow from .your_domain.com
      &lt;/Proxy&gt;
  
      ProxyRequests       Off
      ProxyPreserveHost   On
  
  
  ProxyPass              /       http://localhost:8080/
  ProxyPassReverse       /       http://localhost:8080/
  </code></pre>