Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 8503 invoked from network); 18 Jan 2011 13:57:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 18 Jan 2011 13:57:45 -0000 Received: (qmail 75261 invoked by uid 500); 18 Jan 2011 13:57:42 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 75037 invoked by uid 500); 18 Jan 2011 13:57:38 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 75028 invoked by uid 99); 18 Jan 2011 13:57:38 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Jan 2011 13:57:38 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of i.galic@brainsware.org designates 188.40.115.121 as permitted sender) Received: from [188.40.115.121] (HELO mail.brainsware.org) (188.40.115.121) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Jan 2011 13:57:31 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.brainsware.org (Postfix) with ESMTP id 871721DE32A for ; Tue, 18 Jan 2011 13:57:11 +0000 (UTC) X-Virus-Scanned: amavisd-new at brainsware.org Received: from mail.brainsware.org ([127.0.0.1]) by localhost (mail.brainsware.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id w5pcn+4N-wJM for ; Tue, 18 Jan 2011 13:57:07 +0000 (UTC) Received: from mail.brainsware.org (mail.brainsware.org [188.40.115.121]) by mail.brainsware.org (Postfix) with ESMTP id C3A321DE328 for ; Tue, 18 Jan 2011 13:57:07 +0000 (UTC) Date: Tue, 18 Jan 2011 13:57:07 +0000 (UTC) From: =?utf-8?Q?Igor_Gali=C4=87?= To: users@httpd.apache.org Message-ID: <603782309.8882.1295359027537.JavaMail.root@iris> In-Reply-To: <1734569109.8880.1295358911489.JavaMail.root@iris> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Originating-IP: [195.72.132.1] X-Mailer: Zimbra 6.0.5_GA_2213.DEBIAN5_64 (ZimbraWebClient - FF3.0 ([unknown])/6.0.5_GA_2213.DEBIAN5_64) X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] headers precedence 1.3 vs 2.2 ----- "Nick Kew" wrote: > On 18 Jan 2011, at 02:24, Uxio Faria wrote: >=20 > > =09Ok, everything is fine with this. But with apache 2.2 i can't do > that, headers setted with Header directive > > =09in apache conf, can't be overwrited by php. >=20 > 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 th= ough) > 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 (or ) to limit the scope of your config. >=20 > --=20 > Nick Kew >=20 > Available for work, contract or permanent > http://www.webthing.com/~nick/cv.html i --=20 Igor Gali=C4=87 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 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