]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Allow final admin-level fine-tuning
authorJim Jagielski <jim@apache.org>
Thu, 9 Feb 2017 12:58:35 +0000 (12:58 +0000)
committerJim Jagielski <jim@apache.org>
Thu, 9 Feb 2017 12:58:35 +0000 (12:58 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1782323 13f79535-47bb-0310-9956-ffa450edef68

modules/proxy/mod_proxy_fcgi.c

index 15822ba0fa4c0a78df383226b3e6e9c0ef8879b2..de08396b533ca3f4d3e1f3949609bd82a4ab76a5 100644 (file)
@@ -371,7 +371,6 @@ static apr_status_t send_environment(proxy_conn_rec *conn, request_rec *r,
 
     ap_add_common_vars(r);
     ap_add_cgi_vars(r);
-    fix_cgivars(r, dconf);
 
     if (fpm || apr_table_get(r->notes, "virtual_script")) {
         /*
@@ -395,6 +394,9 @@ static apr_status_t send_environment(proxy_conn_rec *conn, request_rec *r,
 
     /* XXX are there any FastCGI specific env vars we need to send? */
 
+    /* Give admins final option to fine-tune env vars */
+    fix_cgivars(r, dconf);
+
     /* XXX mod_cgi/mod_cgid use ap_create_environment here, which fills in
      *     the TZ value specially.  We could use that, but it would mean
      *     parsing the key/value pairs back OUT of the allocated env array,