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: [email protected]
Reporter: [email protected]
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: [email protected]
For additional commands, e-mail: [email protected]