Gadgets not working with apache front end

As in the directions (http://confluence.atlassian.com/display/JIRA/Integrating+JIRA+with+Apache#IntegratingJIRAwithApache-Enablemodproxyandmodproxyhttp) .... I have the following set up:

This is a 'stand-alone' install:

{atlassian.home}/jira/conf/server.xml

<Context path ="/JRA" ... >

{httpd.home}/conf/httpd.conf

<VirtualHost xxx.xxx.xxx.xxx:80>
... 
ProxyPass /JRA http://localhost:8080/JRA
ProxyPassReverse /JRA http://localhost:8080
</VirtualHost>

This is on a RHEL 5 box. I'm using multiple IPs in my virtual host config (one is dedicated to JIRA .. going to add SSL later, butjust want to get the basic proxy part working first).

Everything works fine, can log in etc., but gadgets don't work. Nothing in the dashboard and get 'gadget directory failed to load' when I click to add gadget. I only have it configured to respond to a single URL and am using a dedicated IP for each vHost in apache. No 404's in apache except for favicon and /secure/useravatar?bla=blah ...

Any ideas?

2 answers

1 accepted

As noted above ...

ProxyRequests off
ProxyPreserveHost on

in the httpd.conf VirtualHost stanza did it.

Not to be daft, but is it the missing context on the reverse proxy statment? (no JRA shown above)

That would make responses look to come from a different URL.

1
2
3
4
5
<VirtualHost xxx.xxx.xxx.xxx:80>
...
ProxyPass /JRA http://localhost:8080/JRA
ProxyPassReverse /JRA http://localhost:8080/JRA # <-- Added context
</VirtualHost>

Yes ... I had to type it in here as opposed to copy/paste. Legitimate question ... but it's something different, although similarly simple. I noted that I did *not* have:

ProxyRequests off
ProxyPreserveHost on

in my httpd.conf VirtualHost stanza ... that did it.

Sometimes, you just need a night of sleep to see the obvious. ;-)

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...

145 views 1 17
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