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

This widget could not be displayed.

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.

This widget could not be displayed.

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 Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

285 views 5 0
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