httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Igor Galić <i.ga...@brainsware.org>
Subject Re: [users@httpd] headers precedence 1.3 vs 2.2
Date Tue, 18 Jan 2011 13:57:07 GMT

----- "Nick Kew" <nick@webthing.com> 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.

http://at2.php.net/manual/en/function.header.php

That's the default. (Some frameworks, like CakePHP, break that behaviour though)


> 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
> http://www.webthing.com/~nick/cv.html

i

-- 
Igor Galić

Tel: +43 (0) 664 886 22 883
Mail: i.galic@brainsware.org
URL: http://brainsware.org/

---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message