Configure JIRA, Confluence behind Apache on the same Centos server


I would like
- to install and configure JIRA and Confluence (integrated )on a Centos (32bit) server.
- to configure Apache WebServer to be able to use and domains.

Question: What is the problem in the configuration below? When I call http://jira.mycomp.comI receive:
Service Temporarily Unavailable

The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.
Apache/2.2.15 (CentOS) Server at jira.mycomp.comPort 80

*** SEE httpd error_log below ***

I have already set the DNS records for,,
I have gone through the Atlassian docs, but i have some problems with configuring Apache/Tomcat to reach jira.mycomp.cominstead of

- Centos 6.5 (final)
- Mysql 5.5
- hostname:
- IP:

-A INPUT -p icmp -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 8080 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 8095 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 8092 -j ACCEPT

-A INPUT -m state --state NEW -m tcp -p tcp -m multiport --dports 5901,6001 -j ACCEPT

-A INPUT -p tcp --dport 3306 -m state --state NEW,ESTABLISHED -j ACCEPT
-A OUTPUT -p tcp --sport 3306 -m state --state ESTABLISHED -j ACCEPT
-A INPUT -j REJECT --reject-with icmp-host-prohibited
-A FORWARD -j REJECT --reject-with icmp-host-prohibited

My Plan:

- install jira (atlassian-jira*bin) on port 8092
- install httpd (configure with 2 VirtualHost and proxy them to Tomcat)
- install confluence on port 8095
- configure httpd for
- integrate jira and confluence

What I have done so far:
- install jira (atlassian-jira*bin)
- OK works fine
- reaches JIRA

- install httpd
- OK
- configure 2 Virtualhosts:

according to<br< a="">>
i have changed:
<Context docBase="${catalina.home}/atlassian-jira" path="/jira" reloadable="false" useHttpOnly="true">

<VirtualHost *:80>
DocumentRoot /var/www/html

...<br< a="">> ProxyPassReverse /<br< a="">>

<VirtualHost *:80>
DocumentRoot /var/www/html/atlassian

calling from internet I receive an error "Service Temporarily Unavailable"


[Wed Jan 22 17:18:26 2014] [error] (13)Permission denied: proxy: HTTP: attempt to connect to ( failed
[Wed Jan 22 17:18:26 2014] [error] ap_proxy_connect_backend disabling worker for (

Thanks a lot,


1 answer

1 accepted

1 vote
Accepted answer


After reading through some Apache tutorials about the Web Server configuration
and the use of mod_proxy (, I realized, that my version of Apache (2.2.15) on Centos 6.5 does not contain all the modules I need here (although it was written in atlassian doc, that I might need to install mod_proxy_html).

Before carrying out the things on the following link I had to install some development stuff:
yum groupinstall "Development Tools"
yum install openssl-devel
yum install pcre-devel
yum install httpd-devel

I found this link where it was written how to install mod_proxy_html:

And it worked!

I completely reinstalled jira (with Tomcat).
(I have not changed the default context path in server.xml.)

I added to /etc/hosts:

And changed httpd config at my virtual host (if you dont understand virtual hosts, you should read apache doc about it.. not too long..)


<VirtualHost *:80>
<Proxy *>
Order deny,allow
Allow from all

ProxyRequests Off
ProxyPreserveHost On
ProxyPass /<br< a="">> ProxyPassReverse /<br< a="">> ProxyHTMLURLMap /

Afterwards you can install jira (or before...) and you'll be able to reach it on you have the port 80 opened on your routers and in your iptables).

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,516 views 15 20
Read article

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