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

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.

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?

0 vote

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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

648 views 1 18
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