You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Nick Gearls <ni...@gmail.com> on 2011/05/02 12:01:12 UTC

mod_proxy & headers

Hello,

It seems that some headers cannot be modified when mod_proxy sets them.
Ex: Content-Type - it is not possible to overwrite it with any of the 
following directives:
   AddType ...
   ForceType ...
   Header set ...

I suppose that mod_proxy runs later then mod_headers 5?).
Could this be clarified in the doc?

As a general note, wouldn't it be possible to get, for each directive, 
the phase where it runs, to be able to understand processing order 
between modules? For the moment, the only ways are a look in the code or 
a test.

Thanks

Nick


Re: mod_proxy & headers

Posted by Eric Covener <co...@gmail.com>.
On Mon, May 2, 2011 at 6:01 AM, Nick Gearls <ni...@gmail.com> wrote:
> Hello,
>
> It seems that some headers cannot be modified when mod_proxy sets them.
> Ex: Content-Type - it is not possible to overwrite it with any of the
> following directives:
>  AddType ...
>  ForceType ...
>  Header set ...

See "doc or fix ForceType for not-default-handler?" thread for a bit
of discussion [but not enough to figure out what to do!]

RE: mod_proxy & headers

Posted by "Plüm, Rüdiger, VF-Group" <ru...@vodafone.com>.
 

> -----Original Message-----
> From: Nick Gearls 
> Sent: Montag, 2. Mai 2011 12:01
> To: Development Apache
> Subject: mod_proxy & headers
> 
> Hello,
> 
> It seems that some headers cannot be modified when mod_proxy 
> sets them.
> Ex: Content-Type - it is not possible to overwrite it with any of the 
> following directives:
>    AddType ...
>    ForceType ...
>    Header set ...

Which version did you use where Header set Content-Type failed?
It does not work correctly before 2.2.12.

Regards

Rüdiger