httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Uxio Faria <>
Subject Re: [users@httpd] headers precedence 1.3 vs 2.2
Date Wed, 19 Jan 2011 12:07:55 GMT

	Ok, i modify the function 'apr_table_setn' of libapr to do that but
	i think this is not the best option.

	if someone discovers other form, i will apreciate it.


El 18/01/11 14:57, Igor Galić escribió:
> ----- "Nick Kew" <> wrote:
>> On 18 Jan 2011, at 02:24, Uxio Faria wrote:
>>> 	Ok, everything is fine with this. But with apache 2.2 i can't do
>> that, headers setted with Header directive
>>> 	in apache conf, can't be overwrited by php.
>> Is it now returning two headers, one from the config and the other
>> from your PHP?
> Or does it add your new valuees to the old?
> The default bahaviour of header() is to replace values.
> That's the default. (Some frameworks, like CakePHP, break that behaviour though)

	I want to replace the default header seted in apache conf with the
	header() function of PHP. Not only the Cache-Control Header.

	As i said before, in apache 1.3 is possible, in 2.2 isn't.

	I'm studing the apache API hook filters of mod_headers and try to
	understand if i could change someting.

	I tried to load php with apxs2filter sapi but i got same results...
	well... worst results.

>> I think the most sensible workaround to use would be to adjust your
>> configuration to avoid setting the header from there for your PHP
>> files.
>> Use <Files> (or <Filesmatch>) to limit the scope of your config.
>> -- 
>> Nick Kew
>> Available for work, contract or permanent
> i

   Uxio Faria Giraldez
   +34 913 537 770

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message