Redirect FQDN to site:port number

d April 27, 2015

Hello, We're attempting to redirect jira.ourcompany.com to https://jira.ourcompany.com:8443.  We've spent some time doing some research online and nothing so far!  The idea is for our users to be able to enter in jira.ourcompany.com into their web browser without having to enter in https or the port number (8443).  This is something that I can easily do with virtual hosts in apache, but I'd like to get it working within tomcat.

 

Any help would be much appreciated, as I'm new to tomcat!

2 answers

0 votes
Pedro Cora
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 27, 2015

Hello,

To achieve that, you will need to have a reverse proxy in front of JIRA, or some service that provides port forwarding. I'd recommend a reverse proxy such as Apache with mod_proxy that will allow you to do it.

For more details, take a look at our documentation on https://confluence.atlassian.com/display/JIRA/Integrating+JIRA+with+Apache

wink

0 votes
Luciano Fagundes
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 27, 2015

Hi there,

Please take a look on step #3 to #6 under Update Tomcat with the Keystore section. It explains how to enable the redirect.

https://confluence.atlassian.com/display/JIRA/Running+JIRA+over+SSL+or+HTTPS

Hope it helps!

Cheers

L.F

d April 27, 2015

Yes, you pointed me in the right direction.  However, I've played around with these specific settings and managed to get the http://jira.ourcompany.com:8080 to redirect to https:jira.ourcompany.com:8443 and this doesn't cover how to redirect jira.ourcompany.com to https:jira.ourcompany.com:8443.

 

If I set the HTTP port to 80 and HTTPS port to 8443, the HTTP to HTTPS redirect will fail.

 

Is there a way to do this without using Apache mod_rewrite?  I'd rather not have apache / apache tomcat both running on our instance.

 

Thank you!

Suggest an answer

Log in or Sign up to answer