Return-Path: X-Original-To: apmail-httpd-users-archive@www.apache.org Delivered-To: apmail-httpd-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 61464101EE for ; Wed, 19 Mar 2014 05:07:28 +0000 (UTC) Received: (qmail 72565 invoked by uid 500); 19 Mar 2014 05:07:24 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 72304 invoked by uid 500); 19 Mar 2014 05:07:23 -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 72296 invoked by uid 99); 19 Mar 2014 05:07:22 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Mar 2014 05:07:22 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [213.184.43.8] (HELO kuller.raad.tartu.ee) (213.184.43.8) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Mar 2014 05:07:15 +0000 Received: from kuller.raad.tartu.ee (localhost [127.0.0.1]) by kuller.raad.tartu.ee (Postfix) with ESMTP id DCA0139842 for ; Wed, 19 Mar 2014 07:06:53 +0200 (EET) X-Virus-Scanned: amavisd-new at post.raad.tartu.ee Received: from kuller.raad.tartu.ee ([127.0.0.1]) by kuller.raad.tartu.ee (kuller.raad.tartu.ee [127.0.0.1]) (amavisd-new, port 10024) with LMTP id kGPkgJ84EERe for ; Wed, 19 Mar 2014 07:06:49 +0200 (EET) Received: by kuller.raad.tartu.ee (Postfix, from userid 80) id 6FB7F39850; Wed, 19 Mar 2014 07:06:48 +0200 (EET) Received: from 76.20.190.90.dyn.estpak.ee (76.20.190.90.dyn.estpak.ee [90.190.20.76]) by webmail.raad.tartu.ee (Horde Framework) with HTTP; Wed, 19 Mar 2014 07:06:48 +0200 Message-ID: <20140319070648.15862xq4w6j7lyqs@webmail.raad.tartu.ee> Date: Wed, 19 Mar 2014 07:06:48 +0200 From: Toomas Aas To: users@httpd.apache.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.3.7) X-Originating-IP: 90.190.20.76 X-Virus-Checked: Checked by ClamAV on apache.org Subject: [users@httpd] ProxyPassMatch vs FilesMatch Hello! I'm setting up a site with Apache 2.4.6 and PHP 5.5.9, using PHP-FPM via mod_proxy_fcgi. In my configuration I have this: ProxyPassMatch ^/(.*\.php)$ fcgi://127.0.0.1:9000/storage/www/sites/mysite/$1 This seems to work just fine. The purpose of this site is to authenticate users with client certificates using some PHP processing, so in another point of my configuration I have this: SSLOptions +StdEnvVars This also works as expected - various _SERVER[SSL_*] variables are made available and can be used in PHP. However... when I enclose the SSLOptions directive in FilesMatch block like this: SSLOptions +StdEnvVars ... then the SSLOptions directive is not in effect - variables are not available in PHP. This worked in older server with Apache 2.2, where mod_php was used instead of PHP-FPM. It seems that when both ProxyPassMatch and FilesMatch are present then ProxyPassMatch somehow "wins" and FilesMatch is not regarded. Is this expected behaviour and is there any way to achieve what I'm trying to do - change SSLOptions only for requests for .php files, not all files? Disclaimer: I did see that 2.4.9 was just released, but looks like FreeBSD port is not available yet. Regards, -- Toomas Aas --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org