Galaxy type: local

I'm trying to get IGV to download files served from the galaxy instance through "display_application". 
When IGV makes a request for the BAM file, it is re-routed to root like so:

wget http://example.org/galaxy/display_application/e2132aef71b11dbf/igv_bam/local_default/cc7ba224ab9e7b70/data/galaxy_e2132aef71b11dbf.bam
--2012-06-22 13:58:00--  http://example.org/galaxy/display_application/e2132aef71b11dbf/igv_bam/local_default/cc7ba224ab9e7b70/data/galaxy_e2132aef71b11dbf.bam
Connecting to example.org:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: /galaxy/root?app_action=data&user_id=cc7ba224ab9e7b70&app_name=igv_bam&link_name=local_default&action_param=galaxy_e2132aef71b11dbf.bam&dataset_id=e2132aef71b11dbf [following]
--2012-06-22 13:58:00--  http://example.org/galaxy/root?app_action=data&user_id=cc7ba224ab9e7b70&app_name=igv_bam&link_name=local_default&action_param=galaxy_e2132aef71b11dbf.bam&dataset_id=e2132aef71b11dbf
Reusing existing connection to example.org:80.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: 'galaxy_e2132aef71b11dbf.bam.1'

    [ <=>                                                                                                                             ] 27,581      --.-K/s   in 0s      

2012-06-22 13:58:00 (146 MB/s) - 'galaxy_e2132aef71b11dbf.bam.1' saved [27581]

Giving us a text/html page rather than the BAM file.

I see that I'm not the first person to run into this: http://lists.bx.psu.edu/pipermail/galaxy-dev/2011-December/007901.html but I'm still not really sure how to solve the problem.

I'm no sysadmin, so my apache config skills are very patchy. My config is up at https://gist.github.com/2970592. Any help would be very much appreciated.

Rob Syme

PhD Student
Curtin University