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 2015/05/28 17:55:48 UTC

[Bug 57968] New: SetHandler converts proxy:unix:/path/TO/app to lower case

https://bz.apache.org/bugzilla/show_bug.cgi?id=57968

            Bug ID: 57968
           Summary: SetHandler converts proxy:unix:/path/TO/app to lower
                    case
           Product: Apache httpd-2
           Version: 2.4.12
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_proxy_fcgi
          Assignee: bugs@httpd.apache.org
          Reporter: rainer-apache@7val.com

The documentation for mod_proxy_fcgi includes an example that uses SetHandler
to connect to a unix domain socket specified as proxy:unix:/path/to[...]. Those
don't work for my test setup, since the path to the socket is converted to
lower case. There's no hint in the documentation, either for mod_proxy_fcgi or
SetHandler, that this conversion takes place (by ap_set_string_slot_lower via
AP_INIT_TAKE1 in server/core.c, if I'm not mistaken).

In my httpd.conf, I have specified

SetHandler 
"proxy:unix:/home/canavan/FIT/trunk/run/php-fpm.sock|fcgi://localhost/"

and with sufficiently high log level, one can see that the lowercase path is
used instead:

[Thu May 28 17:33:35.560520 2015] [proxy:error] [pid 2636:tid 140176269518592]
[client 127.0.0.1:53219] sockpath /home/canavan/fit/trunk/run/php-fpm.sock
[...]
[Thu May 28 17:33:35.560565 2015] [proxy:debug] [pid 2636:tid 140176269518592]
proxy_util.c(2220): [client 127.0.0.1:53219] AH02545: fcgi: has determined UDS
as /home/canavan/fit/trunk/run/php-fpm.sock
[Thu May 28 17:33:35.560663 2015] [proxy:debug] [pid 2636:tid 140176269518592]
proxy_util.c(2388): [client 127.0.0.1:53219] AH00947: connected
//home/canavan/FIT/14/testhost/staticwww/index.php to httpd-UDS:0
[Thu May 28 17:33:35.560698 2015] [proxy:error] [pid 2636:tid 140176269518592]
(2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain
socket /home/canavan/fit/trunk/run/php-fpm.sock (*) failed

-- 
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 57968] SetHandler converts proxy:unix:/path/TO/app to lower case

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

Eric Covener <co...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |FixedInTrunk

--- Comment #1 from Eric Covener <co...@gmail.com> ---
Thanks Rainer, I've fixed this in trunk http://svn.apache.org/r1682482 and
proposed it for backport to 2.4.x.

-- 
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 57968] SetHandler converts proxy:unix:/path/TO/app to lower case

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

Christophe JAILLET <ch...@wanadoo.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #2 from Christophe JAILLET <ch...@wanadoo.fr> ---
This is part of the (unreleased) 2.4.13
backport in r1682888

-- 
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