Fisheye running with the same JIRA hostname

Darly Senecal-Baptiste
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.
February 23, 2014

Hi Community:

I was applying the following:

In Jira (War Installation) I was setting the proxy with its proxyName=jiradev.example.comat the server.xml file (also with the scheme and port). And at apache I was using the following

<VirtualHost *:80>
ServerName jiradev.example.com


#SSLProxyEngine On
ProxyRequests   Off
ProxyPreserveHost       On
ProxyPass       /       http://server_url:8080/jira
ProxyPassReverse /  http://server_url:8080/jira

#ProxyPass /crucible http://e1dmiscvap01.ert.com:8060/crucible
#ProxyPassReverse /crucible http://e1dmiscvap01.ert.com:8060/crucible


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

<Location /jira>
 Order allow,deny
 Allow from all
</Location>

</VirtualHost>

Now, I want to add Fishsye (with the /curcible context), under the same apache server. So I performed the following at fisheye's config.xml file

<web-server site-url="http://e1dmiscvap01.ert.com:8060/crucible" context="/crucible">
        <http bind=":8060" proxy-port="443" proxy-scheme="https" proxy-host="jiradev.example.com"/>
      <ssl keystore-password="OBF:1bw21y7z1wui1gfp1gg91wtw1y7z1bws" bind=":6443" truststore-password="OBF:1bw21y7z1wui1gfp1gg91wtw1y7z1bws" truststore="/crucible/fis_keystore.kst" keystore="/crucible/fis_keystore.kst"><proxy-info proxy-host="jiradev.ert.com" proxy-port="443" proxy-scheme="https"/></ssl>  </web-server>

And I added the following line under JIRA's VirtualHost at apache

#ProxyPass /crucible http://e1dmiscvap01.ert.com:8060/crucible
#ProxyPassReverse /crucible http://e1dmiscvap01.ert.com:8060/crucible

Stopped JIRA and Fisheye and reloaded apache. Started JIRA, then Crucible. Acceesed JIRA with cannonical URL, it works. However, looking for crucible with jiradev.example.com/crucible, it throws me a 404 error from tomcat.

What did I do wrong and how to resolve that.

PS: Also, I want to add the same cannonical URL to git and svn as well

Thanks

1 answer

1 accepted

0 votes
Answer accepted
lpater
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 3, 2014

Hi Darly,

seeing a 404 error from tomcat seems to indicate that apache directs the request to /crucible to JIRA instead of Crucible (which uses Jetty internally).

Looking at http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxypassit seems that the order of the ProxyPass directives matters, and that the first matching one is applied (in your case that would be the 'ProxyPass /' one). The docs mention that you should generally order them from the longest url to the shortest.

Could you try putting the 'ProxyPass /crucible' rules first and see if that helps you resolve your issue?

Darly Senecal-Baptiste
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.
March 6, 2014

Thanks Lukasz. I realized that my server was mimicked by a load balancing system. One of my sysadmin made the proper change and now it's working. Thanks again

Suggest an answer

Log in or Sign up to answer