Re: headers precedence 1.3 vs 2.2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



----- "Nick Kew" <nick@xxxxxxxxxxxx> 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@xxxxxxxxxxxxxx
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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux