Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Apache: Users

Change Content-Disposition from inline to attachment using mod_headers in a reverse proxy?

 

 

Apache users RSS feed   Index | Next | Previous | View Threaded


devraj at gmail

Nov 20, 2009, 3:14 PM

Post #1 of 3 (558 views)
Permalink
Change Content-Disposition from inline to attachment using mod_headers in a reverse proxy?

Hi all,

We are setting up a reverse proxy to proxy contents from an external
web site, because we need to change parts of the content before we
serve it to our users (primarily to make the site Firefox friendly).
mod_substitute does most of what we want, apart from file downloads.
Firefox on Linux (which is most of our users) doesn't seem to handle
PDF files delivered inline that well.

The web site sends down the PDF files with the following header

Content-Disposition: inline;filename=Report.pdf

I would like the Content-Disposition to be changed to attachment. I
believe mod_headers is the module for the job.

Is it possible to use mod_headers to change the parameter value? Can
someone please provide me links to any resources that can help me
understand this better? The examples on the Apache web site are not
enough for me to understand how I may be able to go about this.

Thanks for your time.

--
"The secret impresses no-one, the trick you use it for is everything"
- Alfred Borden (The Prestiege)

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe [at] httpd
" from the digest: users-digest-unsubscribe [at] httpd
For additional commands, e-mail: users-help [at] httpd


nick at webthing

Nov 20, 2009, 3:19 PM

Post #2 of 3 (547 views)
Permalink
Re: Change Content-Disposition from inline to attachment using mod_headers in a reverse proxy? [In reply to]

Devraj Mukherjee wrote:
> Hi all,
>
> We are setting up a reverse proxy to proxy contents from an external
> web site, because we need to change parts of the content before we
> serve it to our users (primarily to make the site Firefox friendly).
> mod_substitute does most of what we want, apart from file downloads.
> Firefox on Linux (which is most of our users) doesn't seem to handle
> PDF files delivered inline that well.

Sounds like firefox on linux is badly misconfigured. LART your sysop!

> The web site sends down the PDF files with the following header
>
> Content-Disposition: inline;filename=Report.pdf
>
> I would like the Content-Disposition to be changed to attachment. I
> believe mod_headers is the module for the job.

Yep. What's the problem?
(just dropping the Content-Disposition wouldn't hurt).

--
Nick Kew

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe [at] httpd
" from the digest: users-digest-unsubscribe [at] httpd
For additional commands, e-mail: users-help [at] httpd


devraj at gmail

Nov 20, 2009, 3:21 PM

Post #3 of 3 (557 views)
Permalink
Re: Change Content-Disposition from inline to attachment using mod_headers in a reverse proxy? [In reply to]

Hi Nick,

>>
>> We are setting up a reverse proxy to proxy contents from an external
>> web site, because we need to change parts of the content before we
>> serve it to our users (primarily to make the site Firefox friendly).
>> mod_substitute does most of what we want, apart from file downloads.
>> Firefox on Linux (which is most of our users) doesn't seem to handle
>> PDF files delivered inline that well.
>
> Sounds like firefox on linux is badly misconfigured.  LART your sysop!
>

Appreciate the feedback. Will take it up with him.

>> The web site sends down the PDF files with the following header
>>
>> Content-Disposition: inline;filename=Report.pdf
>>
>> I would like the Content-Disposition to be changed to attachment. I
>> believe mod_headers is the module for the job.
>
> Yep.  What's the problem?
> (just dropping the Content-Disposition wouldn't hurt).
>

Ah great. Will try that.

Thanks for your time.

--
"The secret impresses no-one, the trick you use it for is everything"
- Alfred Borden (The Prestiege)

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe [at] httpd
" from the digest: users-digest-unsubscribe [at] httpd
For additional commands, e-mail: users-help [at] httpd

Apache users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.