Riderect URL Jira Ubuntu

Bardh December 2, 2013

I have created a redirect url, so that the users can connect easier to it.

the name of the redirect is : jira.xyz.co

the redirect is working fine, and it takes me to the desired destination url, but without DNS resolution.

http://111.111.111.111:8080/secure/Dashboard.jspa,

I’m trying to figure out for the redirect to have the below view when the users type: jira.xyz.co

to forward them to the below link

http://jira.xyz.co/jira/secure/Dashboard.jspa

2 answers

1 vote
William Crighton _CCC_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 3, 2013

I think he needs both, Harry - a DNS entry for his 1.1.1.1 jira.xyz.co host and a proxy - rewrite or ajp - to provide a 'pretty' url to his users.

If he just does the DNS fix his users would have to enter the port and context to get to the server, like http://jira.xyz.com:8080/jira - the proxy would fix it so they could just enter http://jira.xyz.com (and hopefully then config'd to forward to https://jira.xyz.com).

@bardhyl - setting up the rewrite or ajp proxy is very easy in Ubuntu with simple commands to enable/disable modules that you'll need - and I'd go into the jira server's server.xml file (located in your <jira base>/conf directory - <jira base> is the root directory of where you installed JIRA. There will be a line that starts <Context path="/jira" docBase= - change it to read <Context path="" docBase= instead.

For Apache config on Ubuntu check this search out:

https://www.google.com/#newwindow=1&q=how+to+configure+apache+on+ubuntu

This page had some nice 'background' intel for folks new at apache config on ubuntu:

http://www.control-escape.com/web/configuring-apache2-debian.html

Harry Chan
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 3, 2013

There's no need for complicated Apache setup to just run JIRA. You can have JIRA (Tomcat) run on port 80 / 443 without any Apache / rewrite / proxy required.

William Crighton _CCC_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 3, 2013

dude...to do that you have to run tomcat as root - with all the security issues that've been reported over the last couple years - no company I've worked with would want/allow that. And setting up SSL with apache is just _easier_.

Plus Apache gives you performance improvements and better handling for multiiple simultaneous requests.

But to each their own...the important thing is security, stability, and happy users - and you can have 2 of those.

Harry Chan
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 3, 2013

Please stop giving false information. You can run Tomcat like that via iptables 8080->80 or using authbind for Tomcat to run on port 80. No need for root. Same can be done for 443.

Not sure where you've worked etc.

Putting Apache increases load. The old Tomcat needs to be fronted by Apache is a very old theory that no longer applies. Current Tomcat (7+) easily holds on its own.

0 votes
Harry Chan
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 3, 2013

Hi, what you need is not a redirect but an A record in your DNS. Set your IP to jira.xyz.co and it'd work. Also update the base URL.

Bardh December 10, 2013

Harry, why do I need an A record instead of keeping the redirect thats allready created, and also you commented to update the jira base url, what do I need to change on the base url, currently my jira base url is configured as: http://xx.xxx.xx.xx:8080/jira, where the symbol x represents the ip number. Thnx.

Harry Chan
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 10, 2013

JIRA only accepts 1 base URL. A lot of things will break if you try to access it from multiple URL redirects/cnames. It's not supported.

So stick with 1.

Your base URL should be the URL you want to use to access JIRA and what others would be using, i.e. what's customer facing. Avoid redirects.

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 10, 2013

Yup, you *can* use redirects if you want, but they only have limited uses.

Jira won't run on several urls, it runs on a single distinct base url and expects people to use that. Redirects are pretty useful for catching people who may have old bookmarks or notes pointing to where you moved a system from when you changed the location, but that's about it.

Suggest an answer

Log in or Sign up to answer