I want to set up and configure my production machine to redirect requests for the old JIRA URL(http://Servername1:8080/secure/Dashboard.jspa)
to the new host(http://servername2/secure/Dashboard.jspa).

( Before getting into production, I wanted to try on Local machine... http://localhost:8080(JIRA) to (http:/servername2/secure/Dashboard.jspa). 

 Can you please assist me how to perform redirection in JIRA?




2 answers

1 accepted

To add some insight that kept me doing it wrong for years:

Let apache do your SSL termination, don't implement SSL cert on JIRA itself, meaning:

Client HTTP -> Apache port 80 -> Apache port 443 -> JIRA port 8080

in /etc/apache2/sites-available/jira.conf:

<VirtualHost *:80>
    ServerName jira.fully.qualified.domain.name
    ServerAlias jira.fully.qualified.domain.name jira
    <Directory />
    UseCanonicalName DNS
    AllowOverride None
    Order allow,deny
    allow from all
    RewriteEngine On
    RewriteCond %{SERVER_PORT} 80
    RewriteRule ^(.*)$ https://jira.fully.qualified.domain.name%{REQUEST_URI} [R,L]
<VirtualHost *:443>
    ServerName jira.fully.qualified.domain.name
    ServerAlias jira.fully.qualified.domain.name jira
    SSLProxyEngine on
    ProxyRequests Off
    ProxyPreserveHost On
    ProxyPass / http://jira.fully.qualified.domain.name:8081/ keepalive=On
    ProxyPassReverse / http://jira.fully.qualified.domain.name:8081/
    ErrorLog /var/log/apache2/jira_ssl_error_log
    MaxKeepAliveRequests 500
    KeepAlive On
    SSLEngine on
    SSLCertificateFile /home/jira/jira.crt
    SSLCertificateKeyFile /home/jira/jira.key
    SSLProxyVerify none
    SSLProxyCheckPeerCN off
    SSLProxyCheckPeerName off

Make sure you use alt_names in your openssl.cnf covering both FQDN and shortnames, real servernames and any other url you might access JIRA from.

Disable gzip http compression.

Set FQDN as server name.


In your server.xml:

<Connector port="8081"

                   keystorePass="keystore password goes here"

Further down in you server.xml (to remove the /JIRA or /atlassian-jira):

<Context path="" docBase="${catalina.home}/atlassian-jira" reloadable="false" useHttpOnly="true">


Good luck, this most basic feature is completely unsupported by Atlassian.

0 votes

Use Apache to do the redirection. See https://httpd.apache.org/docs/2.4/rewrite/remapping.html for some details.

You can also find confluence redirection using apache at https://confluence.atlassian.com/doc/using-apache-with-mod_proxy-173669.html. JIRA is going to be pretty much the same.

I apologies for the late response. I used the Apache for redirection using rewrite model. it works!!!!!!!!!

Thank you so much for the support & Help.



Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,849 views 12 18
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot