Trouble connecting FishEye to Apache
Asked by Daniel Hebb:

I can't seem to connect FishEye to Apache. I followed the docs online for Fisheye 2.6.1 to set up a proxy, but that doesn't seem to work. I just get redirected to a blank page. I have Jira connected to the same Apache instance through an AJP connector, but the documentation for FishEye's AJP connector is a little slim and I haven't gotten it to work. Has anyone had any luck fronting FishEye with Apache?


Answers:
author: Daniel Hebb
body: I was able to get this to work, my Jira configuration was overriding my proxy pass. It should be obvious, I just figured AJP handled the fact that I was redirecting / to it. Anyway, my final confiugration looks like this:

httpd.conf

ProxyRequests Off

ProxyPreserveHost On

\<Proxy \*\>

Order deny,allow

Allow from all

\</Proxy\>

#Jira

ProxyPass /jira [http://bkc-dev-collabnet.llnl.gov:8086/jira\</p\<\>\>](http://bkc-dev-collabnet.llnl.gov:8086/jira%3C/p)

[ProxyPassReverse /jira](http://bkc-dev-collabnet.llnl.gov:8086/jira%3C/p)[http://bkc-dev-collabnet.llnl.gov:8086/jira\</p\<\>\>](http://bkc-dev-collabnet.llnl.gov:8086/jira%3C/p)

[#Confluence](http://bkc-dev-collabnet.llnl.gov:8086/jira%3C/p)
[](http://bkc-dev-collabnet.llnl.gov:8086/jira%3C/p)

[ProxyPass /confluence](http://bkc-dev-collabnet.llnl.gov:8086/jira%3C/p)[http://localhost:8087/confluence\</p\<\>\>](http://localhost:8087/confluence%3C/p)

[ProxyPassReverse /confluence](http://localhost:8087/confluence%3C/p)[http://localhost:8087/confluence\</p\<\>\>](http://localhost:8087/confluence%3C/p)

[#Fisheye](http://localhost:8087/confluence%3C/p)
[](http://localhost:8087/confluence%3C/p)

[ProxyPass /fisheye](http://localhost:8087/confluence%3C/p)[http://bkc-dev-collabnet.llnl.gov:8060/fisheye\</p\<\>\>](http://bkc-dev-collabnet.llnl.gov:8060/fisheye%3C/p)

[ProxyPassReverse /fisheye](http://bkc-dev-collabnet.llnl.gov:8060/fisheye%3C/p)<http://bkc-dev-collabnet.llnl.gov:8060/fisheye>

and then my Fisheye Config:

\<web-server context="fisheye"\>

\<http bind=":8060" proxy-port="80" proxy-scheme="http" proxy-host="hostname"/\>

One issiue i did have is that specifying the proxy-host in Jira i used a fully qualified path, as in <http://hostname,> but in Fisheye that redirects you to [http://http://hostname,](http://http//hostname,) so drop the http://\</p\<\>\>


author: Daniel Hebb
body: Hi guys, thanks for writing in. So here's my relevant part of the http.conf

#Jira

ProxyPass / ajp://bkc-dev-collabnet:8009/

ProxyPassReverse / ajp://bkc-dev-collabnet:8009/

#Fisheye

ProxyPass /fisheye [http://bkc-dev-collabnet.llnl.gov:8060/fisheye\</p\<\>\>](http://bkc-dev-collabnet.llnl.gov:8060/fisheye%3C/p)

[ProxyPassReverse /fisheye](http://bkc-dev-collabnet.llnl.gov:8060/fisheye%3C/p)<http://bkc-dev-collabnet.llnl.gov:8060/fisheye>

I'm trying to serve both Jira and Fisheye, and it's worth noting that Jira works just fine through the ajp connector. I had trouble with a standard proxy pass for it as well, but with Tomcat that was no big deal to work around. I tried ajp for Fisheye as well but no luck

Here's the relevant Fisheye Config for Proxy pass I have setup

\<web-server context="fisheye"\>

\<http bind=":8060" proxy-port="80" proxy-host="myhost" /\>

\</web-server\>

Thanks


author: Martin Cooper
body: Mod_proxy is the easiet way to do this as Jamie says ( make sure all the necessary modules are enabled in Apache.)

If you want to post your conf files will be easier to see what you are doing.


author: JamieA
body: Do you need to do it via ajp13? I just have:

```

    ProxyPass           /fisheye       http://f.q.d.n:8060/fisheye<br< a=""> />
    ProxyPassReverse    /fisheye       http://f.q.d.n:8060/fisheye

```

Also you need to make sure you have changed the context root in fisheye and then restarted Fisheye for it to take effect. Maybe worth trying to get it working with mod_proxy before ajp13?

comments: author: Daniel Hebb
body: Yes this is exactly how I have it now. I posted my httpd.conf below, I had a conflict that prevented this. Thanks!


Tags: apache

connector