Return-Path: X-Original-To: apmail-httpd-users-archive@www.apache.org Delivered-To: apmail-httpd-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 389941069B for ; Wed, 6 Nov 2013 14:05:39 +0000 (UTC) Received: (qmail 3576 invoked by uid 500); 6 Nov 2013 14:05:33 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 2662 invoked by uid 500); 6 Nov 2013 14:05:27 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 2457 invoked by uid 99); 6 Nov 2013 14:05:22 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Nov 2013 14:05:22 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [76.96.30.56] (HELO qmta06.emeryville.ca.mail.comcast.net) (76.96.30.56) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Nov 2013 14:05:15 +0000 Received: from omta18.emeryville.ca.mail.comcast.net ([76.96.30.74]) by qmta06.emeryville.ca.mail.comcast.net with comcast id mDWy1m0021bwxycA6E4vjs; Wed, 06 Nov 2013 14:04:55 +0000 Received: from [192.168.199.10] ([69.251.80.74]) by omta18.emeryville.ca.mail.comcast.net with comcast id mE4t1m00U1cCKD98eE4uxW; Wed, 06 Nov 2013 14:04:55 +0000 From: Jim Jagielski Content-Type: multipart/mixed; boundary="Apple-Mail=_08FCEFB0-1A79-458F-BEE0-18077AA36E89" Message-Id: <9214FC99-2A58-400E-AFE0-841CDA971CA4@jaguNET.com> Mime-Version: 1.0 (Mac OS X Mail 7.0 \(1816\)) Date: Wed, 6 Nov 2013 09:04:53 -0500 References: To: users@httpd.apache.org In-Reply-To: X-Mailer: Apple Mail (2.1816) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20121106; t=1383746695; bh=QkB/GXLxmNmMNAmonnmNfz37AdPShNojKFYgIXgHCqI=; h=Received:Received:From:Content-Type:Message-Id:Mime-Version: Subject:Date:To; b=h8yLZqrH6+5DT1MTaC/ZaScXMY6dXTzTHdu0V3XhtoiXkZ4hMOF8npZ3hk42rtyWI 3PW0+l+p/zvUHfiba28AvWkBTMFbzHbY3YLQe46u71ZobZuCNHnwnbQgB6jxzgd2zb eflb+GqMvnf+SK1ATpzKu8ynP7quac0H7bY4+DR5DWemc8HL05bXjgb8FcmBL2dhuH Q/NXdOWXoPbUsP9ZljbAPFIbWBH9KSHkZ4/SYPYhcq51eU5SK9+pq5ImsHZBSJz4wf L8SaJtZqkXwhx6t/9m1loEcfRZ+y9v/4GCz38FP0sVGkDZIUV0xR3gYC6cwyEs6XEA 9eP7x7nAGlZaA== X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] Issues with UDS support for mod_proxy in trunk --Apple-Mail=_08FCEFB0-1A79-458F-BEE0-18077AA36E89 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=iso-8859-1 Try this patch: --Apple-Mail=_08FCEFB0-1A79-458F-BEE0-18077AA36E89 Content-Disposition: attachment; filename=find-worker.patch Content-Type: application/octet-stream; x-unix-mode=0644; name="find-worker.patch" Content-Transfer-Encoding: 7bit diff --git a/modules/proxy/proxy_util.c b/modules/proxy/proxy_util.c index d772542..4dcf93c 100644 --- a/modules/proxy/proxy_util.c +++ b/modules/proxy/proxy_util.c @@ -1517,7 +1517,16 @@ PROXY_DECLARE(proxy_worker *) ap_proxy_get_worker(apr_pool_t *p, const char *c; char *url_copy; int i; + char *ptr; + /* + * We could be passed a URL during the config stage that contains + * the UDS path... ignore it + */ + if (!strncasecmp(url, "unix:", 5) && + ((ptr = ap_strchr((char *)url, '|')) != NULL)) { + url = ptr+1; + } c = ap_strchr_c(url, ':'); if (c == NULL || c[1] != '/' || c[2] != '/' || c[3] == '\0') { return NULL; --Apple-Mail=_08FCEFB0-1A79-458F-BEE0-18077AA36E89 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=iso-8859-1 On Nov 5, 2013, at 2:02 PM, ryo takatsuki = wrote: > Hi, >=20 > 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: >=20 > ProxyPassMatch ^(.*\.php(/.*)?)$ = fcgi://uds=3D%2ftmp%2fsomedir%2fphp%2fvar%2frun%2fsocket.sock/$1 >=20 > 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: >=20 > ProxyPass / unix:/tmp/somedir/php/var/run/socket.sock|fcgi:// >=20 > And I'm receiving the below error: >=20 > "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." >=20 > Enabling trace8 debug level I see some interesting messages (I removed = the date and pid info for simplicity): >=20 > 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. >=20 > Where it seems it is trying to find a handler for unix: protocol, = where it is only the socket definition.=20 >=20 > I tried many other combinations as well as reverting to the previous = syntax modification but I could not make it work.=20 >=20 > Does anyone have a working example using sockets in trunk or knows = what is going on on my side? >=20 > Thanks a lot. >=20 >=20 >=20 >=20 >=20 >=20 --Apple-Mail=_08FCEFB0-1A79-458F-BEE0-18077AA36E89 Content-Type: text/plain; charset=us-ascii --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org --Apple-Mail=_08FCEFB0-1A79-458F-BEE0-18077AA36E89--