Return-Path: X-Original-To: apmail-httpd-cvs-archive@www.apache.org Delivered-To: apmail-httpd-cvs-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6241C4407 for ; Thu, 19 May 2011 15:58:37 +0000 (UTC) Received: (qmail 28812 invoked by uid 500); 19 May 2011 15:58:37 -0000 Delivered-To: apmail-httpd-cvs-archive@httpd.apache.org Received: (qmail 28763 invoked by uid 500); 19 May 2011 15:58:37 -0000 Mailing-List: contact cvs-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list cvs@httpd.apache.org Received: (qmail 28754 invoked by uid 99); 19 May 2011 15:58:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 May 2011 15:58:37 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 May 2011 15:58:35 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id A100F23889B1; Thu, 19 May 2011 15:58:15 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1124979 - in /httpd/httpd/trunk: CHANGES docs/manual/mod/mod_proxy_scgi.xml modules/proxy/mod_proxy_scgi.c Date: Thu, 19 May 2011 15:58:15 -0000 To: cvs@httpd.apache.org From: jim@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20110519155815.A100F23889B1@eris.apache.org> Author: jim Date: Thu May 19 15:58:15 2011 New Revision: 1124979 URL: http://svn.apache.org/viewvc?rev=1124979&view=rev Log: Add in proxy-scgi-pathinfo and proxy-fcgi-pathinfo envvars to allow "best guess" calculation of PATH_INFO for backend FCGI/SCGI servers Modified: httpd/httpd/trunk/CHANGES httpd/httpd/trunk/docs/manual/mod/mod_proxy_scgi.xml httpd/httpd/trunk/modules/proxy/mod_proxy_scgi.c Modified: httpd/httpd/trunk/CHANGES URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/CHANGES?rev=1124979&r1=1124978&r2=1124979&view=diff ============================================================================== --- httpd/httpd/trunk/CHANGES [utf-8] (original) +++ httpd/httpd/trunk/CHANGES [utf-8] Thu May 19 15:58:15 2011 @@ -2,6 +2,10 @@ Changes with Apache 2.3.13 + *) mod_proxy_fcgi|scgi: Add support for "best guess" of PATH_INFO + for SCGI/FCGI. PR 50880, 50851. [Mark Montague , + Jim Jagielski] + *) mod_cache: When content is served stale, and there is no means to revalidate the content using ETag or Last-Modified, and we have mandated no stale-on-error behaviour, stand down and don't cache. Modified: httpd/httpd/trunk/docs/manual/mod/mod_proxy_scgi.xml URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/mod/mod_proxy_scgi.xml?rev=1124979&r1=1124978&r2=1124979&view=diff ============================================================================== --- httpd/httpd/trunk/docs/manual/mod/mod_proxy_scgi.xml (original) +++ httpd/httpd/trunk/docs/manual/mod/mod_proxy_scgi.xml Thu May 19 15:58:15 2011 @@ -75,6 +75,22 @@ +
Environment Variables +

In addition to the configuration directives that control the + behaviour of mod_proxy, there are a number of + environment variables that control the SCGI protocol + provider:

+
+
proxy-scgi-pathinfo
+
By default mod_proxy_scgi will neither create + nor export the PATH_INFO environment variable. This allows + the backend SCGI server to correctly determine SCRIPT_NAME + and Script-URI and be compliant with RFC 3875 section 3.3. + If instead you need mod_proxy_scgi to generate + a "best guess" for PATH_INFO, set this env-var.
+
+
+ ProxySCGISendfile Enable evaluation of X-Sendfile pseudo response Modified: httpd/httpd/trunk/modules/proxy/mod_proxy_scgi.c URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/proxy/mod_proxy_scgi.c?rev=1124979&r1=1124978&r2=1124979&view=diff ============================================================================== --- httpd/httpd/trunk/modules/proxy/mod_proxy_scgi.c (original) +++ httpd/httpd/trunk/modules/proxy/mod_proxy_scgi.c Thu May 19 15:58:15 2011 @@ -204,7 +204,11 @@ static int scgi_canon(request_rec *r, ch r->filename = apr_pstrcat(r->pool, "proxy:" SCHEME "://", host, sport, "/", path, NULL); - r->path_info = apr_pstrcat(r->pool, "/", path, NULL); + + if (apr_table_get(r->subprocess_env, "proxy-scgi-pathinfo")) { + r->path_info = apr_pstrcat(r->pool, "/", path, NULL); + } + return OK; }