You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2014/08/14 20:01:54 UTC

[Bug 56855] New: mod_proxy_fcgi: add PassHeader directive

https://issues.apache.org/bugzilla/show_bug.cgi?id=56855

            Bug ID: 56855
           Summary: mod_proxy_fcgi: add PassHeader directive
           Product: Apache httpd-2
           Version: 2.5-HEAD
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: mod_proxy_fcgi
          Assignee: bugs@httpd.apache.org
          Reporter: manuel-asf@mausz.at

Created attachment 31916
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=31916&action=edit
patch

We're in the progress of moving from mod_fastcgi to mod_proxy_fcgi on our
PHP-FPM setups and noticed that http authentication won't work anymore.

The main reason for this is the "Authorization"-header won't get passed to the
fcgi app, unless explicitly set. e.g. using SetEnvIf Authorization "(.*)"
HTTP_AUTHORIZATION=$1

Since both fcgi modules, mod_fastcgi and mod_fcgid, support a much easier "pass
header"-directive I decided to add this to mod_proxy_fcgi as well.

Most code is copied from mod_fcgid. The legacy behavior ist left out right
away.
Please see http://httpd.apache.org/mod_fcgid/mod/mod_fcgid.html#fcgidpassheader
for more information.

Patch is attached.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 56855] mod_proxy_fcgi: add PassHeader directive

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=56855

--- Comment #2 from Jeff Trawick <tr...@apache.org> ---
A more global solution has been committed to httpd trunk (r1642847).  This
solution provides a core directive CGIPassAuth On|Off to control the feature on
behalf of most modules which pass requests to scripts and use CGI variables to
encode HTTP headers.  The AuthConfig override controls whether or not it can be
set in .htaccess.

I'll propose it for merging back to the 2.4.x branch after others have had a
chance to comment.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 56855] mod_proxy_fcgi: add PassHeader directive

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=56855

--- Comment #1 from Jeff Trawick <tr...@apache.org> ---
thoughts here:

http://mail-archives.apache.org/mod_mbox/httpd-dev/201408.mbox/%3CCAKUrXK56aNNFhKf7XCw0uENW1EVoXTmc2iC42r0NKcSXPv5r9A%40mail.gmail.com%3E

feel free to add

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org