Hi Jim,

I applied the patch but it still failed for me. It now finds the proxy but it fails later on looking for a valid handler.  proxy_fcgi does not recognize it because it does not start by fcgi: but unix:.

I sent you the full log file directly in case it helps but I'm pasting here the related entries:

[proxy:trace2] [pid 14550] proxy_util.c(1912): fcgi: found worker fcgi://localhost/tmp/foo/apps/foo/ for unix:/tmp/foo/php/var/run/foo.sock|fcgi://localhost/tmp/foo/apps/foo//foo/index.php
[proxy:debug] [pid 14550] mod_proxy.c(1102): AH01143: Running scheme unix handler (attempt 0)
[proxy_fcgi:debug] [pid 14550] mod_proxy_fcgi.c(764):  AH01076: url: unix:/tmp/foo/php/var/run/foo.sock|fcgi://localhost/tmp/foo/apps/foo//foo/index.php proxyname: (null) proxyport: 0
[proxy_fcgi:debug] [pid 14550] mod_proxy_fcgi.c(772):  AH01077: declining URL unix:/tmp/foo/php/var/run/foo.sock|fcgi://localhost/tmp/foo/apps/foo//foo/index.php
[proxy_scgi:debug] [pid 14550] mod_proxy_scgi.c(509):  AH00865: declining URL unix:/tmp/foo/php/var/run/foo.sock|fcgi://localhost/tmp/foo/apps/foo//foo/index.php
[proxy_wstunnel:debug] [pid 14550] mod_proxy_wstunnel.c(414): AH02450: declining URL unix:/tmp/foo/php/var/run/foo.sock|fcgi://localhost/tmp/foo/apps/foo//foo/index.php
[proxy_ajp:debug] [pid 14550] mod_proxy_ajp.c(722): AH00894: declining URL unix:/tmp/foo/php/var/run/foo.sock|fcgi://localhost/tmp/foo/apps/foo//foo/index.php
[proxy_connect:trace1] [pid 14550] mod_proxy_connect.c(227): declining URL unix:/tmp/foo/php/var/run/foo.sock|fcgi://localhost/tmp/foo/apps/foo//foo/index.php
[proxy_ftp:trace3] [pid 14550] mod_proxy_ftp.c(1018):  declining URL unix:/tmp/foo/php/var/run/foo.sock|fcgi://localhost/tmp/foo/apps/foo//foo/index.php - not ftp:
[proxy:warn] [pid 14550] AH01144: No protocol handler was valid for the URL /foo/index.php. If you are using a DSO version of mod_proxy, make sure the proxy submodules are included in the configuration using LoadModule.

Thanks for your help!




2013/11/6 Jim Jagielski <jim@jagunet.com>
Try this patch:



On Nov 5, 2013, at 2:02 PM, ryo takatsuki <ryotakatsuki@gmail.com> wrote:

> Hi,
>
> A month ago I checked the new UDS (Unix Domain Sockets) support and it worked properly (I need to tweak it a little bit for my needs). The syntax at that point was:
>
> ProxyPassMatch ^(.*\.php(/.*)?)$ fcgi://uds=%2ftmp%2fsomedir%2fphp%2fvar%2frun%2fsocket.sock/$1
>
> Today I checked the latest changes included and discovered the syntax was changed a couple of times since the version I was using so I rebuilt it and gave it a try without luck. The code I'm using now is:
>
> ProxyPass / unix:/tmp/somedir/php/var/run/socket.sock|fcgi://
>
> And I'm receiving the below error:
>
> "No protocol handler was valid for the URL /x2crm/index.php. If you are using a DSO version of mod_proxy, make sure the proxy submodules are included in the configuration using LoadModule."
>
> Enabling trace8 debug level I see some interesting messages (I removed the date and pid info for simplicity):
>
> proxy_util.c(1925): *: found reverse proxy worker for unix:/tmp/somedir/php/var/run/socket.sock|http://localhost//foo/index.php
> mod_proxy.c(1100): AH01143: Running scheme unix handler (attempt 0)
> mod_proxy_fcgi.c(944): AH01076: url: unix:/tmp/somedir/php/var/run/socket.sock|http://localhost//foo/index.php proxyname: (null) proxyport: 0
> mod_proxy_fcgi.c(950): AH01077: declining URL unix:/tmp/somedir/php/var/run/socket.sock|http://localhost//foo/index.php
> mod_proxy_scgi.c(510): AH00865: declining URL unix:/tmp/somedir/php/var/run/socket.sock|http://localhost//foo/index.php
> mod_proxy_wstunnel.c(326): AH02450: declining URL unix:/tmp/somedir/php/var/run/socket.sock|http://localhost//foo/index.php
> mod_proxy_ajp.c(708): AH00894: declining URL unix:/tmp/somedir/php/var/run/socket.sock|http://localhost//foo/index.php
> mod_proxy_connect.c(227): declining URL unix:/tmp/somedir/php/var/run/socket.sock|http://localhost//foo/index.php
> mod_proxy_ftp.c(1011): declining URL unix:/tmp/somedir/php/var/run/socket.sock|http://localhost//foo/index.php - not ftp:
> [proxy:warn] AH01144: No protocol handler was valid for the URL /foo/index.php. If you are using a DSO version of mod_proxy, make sure the proxy submodules are included in the configuration using LoadModule.
>
> Where it seems it is trying to find a handler for unix: protocol, where it is only the socket definition.
>
> I tried many other combinations as well as reverting to the previous syntax modification but I could not make it work.
>
> Does anyone have a working example using sockets in trunk or knows what is going on on my side?
>
> Thanks a lot.
>
>
>
>
>
>




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



--
 I've seen things you people wouldn't believe.
Attack ships on fire off the shoulder of Orion.
I watched C-beams glitter in the dark near Tannhauser Gate.
All those moments will be lost in time like tears in rain.
Time to die.