Direct JIRA to subdomain on CentOS 6 server

David Rhoderick
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.
January 13, 2017

I've successfully installed JIRA on my server and I can get it to load nicely at http://myserver.com:8080/.  I went through the steps at https://confluence.atlassian.com/kb/proxying-atlassian-server-applications-with-apache-http-server-mod_proxy_http-806032611.html but it still won't load at http://jira.myserver.com(I get ERR_NAME_NOT_RESOLVED).

Additionally, I am on Apache version 2.4.25 and here is my vhost.conf file contents (XXX.XXX.XXX.XXX is my actual IP address):

<VirtualHost XXX.XXX.XXX.XXX:80>
  ServerName jira.myserver.com
  ProxyRequests Off
  ProxyVia Off
 
  RemoteIPHeader X-Forwarded-For
 
  <Proxy XXX.XXX.XXX.XXX>
    Require all granted
  </Proxy>
 
  ProxyPass / http://myserver.com:8080/
  ProxyPassReverse / http://myserver.com:8080/
</VirtualHost>

And here is my server.xml Connect code:

<Connector port="8080"
                   maxThreads="150"
                   minSpareThreads="25"
                   minSpareThreads="25"
                   connectionTimeout="20000"
                   enableLookups="false"
                   maxHttpHeaderSize="8192"
                   protocol="HTTP/1.1"
                   useBodyEncodingForURI="true"
                   redirectPort="8443"
                   acceptCount="100"
                   disableUploadTimeout="true"
                   proxyName="jira.myserver.com"
                   proxyPort="80"
                   scheme="http"
                   />

I'm getting an "ERR_NAME_NOT_RESOLVED" error on my server if I go to jira.myserver.com.  If I go to myserver.com:8080, I can't go past my Agile boards in each of my project pages and my gadgets shows a DNS error message.

On top of that, if I go to server.myserver.com, I can load my JIRA installation.  server.myserver.com and jira.myserver.com are the on the same line in my /etc/hosts/ file and server.myserver.com is defined in my httpd.conf file, which says I shouldn't edit it, for all unbound IP addresses.

I've tried tweaking it so much, what else can I try to fix this?

3 answers

1 accepted

0 votes
Answer accepted
David Rhoderick
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.
January 16, 2017

I had to add a DNS entry for jira.myserver.com.  I tried to do it manually in /etc/hosts and /named et cetera but it was easiest to just create the subdomain from my cPanel and then restart apache servers to grab that new subdomain and proxy it correctly.

Shirley Shorter August 7, 2018

David I am thinking of installing Jira your way, using cPanel to create a Jira.myserver.com and a Confluence.myserver.com for remote access URLs for my team.

My httpd.conf DocumentRoot  is  /home/myusername/public_html

Does your Jira.myserver.com point to /home/myusername/public_html/Jira? 

Did you have to create a directory such as /var/www/html/jira and /var/www/html/confluence and link to those using cPanel subdomains? Are these the "install directories" Jira and Confluence setup routines will ask for? 

Did you have to do anything to add VirtualHost entries for reverse proxy? 

I know this is a lot of questions and I appreciate any help at all - thanks!!! 

0 votes
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.
January 15, 2017

Does nslookup resolve myserver.com and jira.myserver.com to the right IP address?

David Rhoderick
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.
January 15, 2017

It doesn't and I've added jira.myserver.com entries to /named/myserver.com.db.  Am I missing another step to adding a domain to the DNS listing?

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.
January 15, 2017

Ok, you need to have the server (and other machines) be able to find the JIRA server via the urls you are using.  I can't really help you with your network setup.

0 votes
David Rhoderick
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.
January 14, 2017

I fixed this yesterday by replacing the "*" with my server's actual IP address (xxx.xxx.xxx.xxx) but today it isn't working.  What would have changed?

Suggest an answer

Log in or Sign up to answer