Installing jira and confluence behind apache on same server

Hi

I'm trying to set up jira and confluence on the same server behind apache on ubuntu linux with mysql database but do not get it to work.

I did follow the instructions on how to do this and get it to somewhat work. I also google the symptoms im having and tried different setups with no luck.

The problem is that i get Proxy Errors like this ones.

Proxy Error 
The proxy server received an invalid response from an upstream server. 
The proxy server could not handle the request GET /jira/.
Reason: Error reading from remote server

Proxy Error 
The proxy server received an invalid response from an upstream server. 
The proxy server could not handle the request GET /jira/browse/DEMO-1. 
Reason: DNS lookup failure for: mydomain.com

I do not get this on every request, but it works once in a while and there is all over the jira site and not on spesefic pages.

My network is set up like this.

Running dynamic dns on my domain and port forward 8090 (confluence) and 8070 (jira) to my server thru the firewall.

I also have a "normal" site running in /var/www/ that runs on port 80 that works just fine.

This is my apache setup :


<VirtualHost *:80>
        ServerAdmin webmaster@localhost

        DocumentRoot /var/www
        <Directory />
                Options FollowSymLinks
                AllowOverride None
        </Directory>
        <Directory /var/www/>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride None
                Order allow,deny
                allow from all
        </Directory>

        ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
        <Directory "/usr/lib/cgi-bin">
                AllowOverride None
                Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
                Order allow,deny
                Allow from all
        </Directory>

<Proxy *>
        Order deny,allow
        Allow from all
</Proxy>

ProxyRequests           Off
ProxyPreserveHost       On
ProxyPass                    /jira        http://mydomain.com:8070/jira
ProxyPassReverse        /jira        http://mydomain.com:8070/jira

This is my server.xml

Right now i have not set up Confluence since i uninstalled and run the setup on jira 
first due to this issue i'm having. The problem presist with only Jira running.

<Service name="Catalina">

        <Connector port="8070"

                   maxThreads="150"
                   minSpareThreads="25"
                   connectionTimeout="20000"

                   enableLookups="false"
                   maxHttpHeaderSize="8192"
                   protocol="HTTP/1.1"
                   useBodyEncodingForURI="true"
                   redirectPort="8443"
                   acceptCount="100"
                   disableUploadTimeout="true"
                   proxyName="mydomain.com" 
                   proxyPort="80"/>

 <Engine name="Catalina" defaultHost="localhost">
            <Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true">

                <Context path="/jira" docBase="${catalina.home}/atlassian-jira" reloadable="false" useHttpOnly="true">

2 answers

1 accepted

This widget could not be displayed.

Hi,

If you have apache and jira running on same server, try using

http://127.0.0.1:8070/jira

instead of

http://mydomain.com:8070/jira

in ProxyPass line.

Also I would not recomend using 2 applications in one virtualhost. Better use different IPs or Ports or name based virtualhosts.

BR,

Andris.

This widget could not be displayed.

wow, thnx, changing proxypass to localhost did the trick.

Going to change to name based virtualhosts, but wanted to work in the same file when trying to figure this out.

Best regards and have a splendid day.

--

Kenneth

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Monday in Confluence

Why start from scratch? Introducing four new templates for Confluence Cloud

Hi my Community friends!  For those who don't know me, I'm a product marketer on the Confluence Cloud team - nice to meet you! For those of you who do, you know that I've been all up in your Co...

484 views 6 6
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