Direct JIRA to subdomain on CentOS 6 server

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

This widget could not be displayed.

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.

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!!! 

This widget could not be displayed.

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?

This widget could not be displayed.

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

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?

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.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Tuesday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

266 views 1 3
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