Return-Path: X-Original-To: apmail-httpd-dev-archive@www.apache.org Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A894B10DBA for ; Wed, 19 Mar 2014 11:46:42 +0000 (UTC) Received: (qmail 57519 invoked by uid 500); 19 Mar 2014 11:46:39 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 57457 invoked by uid 500); 19 Mar 2014 11:46:38 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 57448 invoked by uid 99); 19 Mar 2014 11:46:35 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Mar 2014 11:46:35 +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.24] (HELO qmta02.emeryville.ca.mail.comcast.net) (76.96.30.24) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Mar 2014 11:46:29 +0000 Received: from omta10.emeryville.ca.mail.comcast.net ([76.96.30.28]) by qmta02.emeryville.ca.mail.comcast.net with comcast id fPiL1n0010cQ2SLA2Pm9Pc; Wed, 19 Mar 2014 11:46:09 +0000 Received: from [192.168.199.10] ([69.251.80.74]) by omta10.emeryville.ca.mail.comcast.net with comcast id fPm71n0021cCKD98WPm76L; Wed, 19 Mar 2014 11:46:09 +0000 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 7.2 \(1874\)) Subject: Re: mod_proxy: unwieldy unix socket implementation. From: Jim Jagielski In-Reply-To: <532927F3.50507@progandy.de> Date: Wed, 19 Mar 2014 07:46:06 -0400 Content-Transfer-Encoding: quoted-printable Message-Id: <21209578-CC19-4017-A9D5-101E8EE8EFB7@jaguNET.com> References: <532927F3.50507@progandy.de> To: dev@httpd.apache.org, register@progandy.de X-Mailer: Apple Mail (2.1874) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20140121; t=1395229569; bh=cKO4lBEb9ZsKAQljSOxyH1G03ielQlOgWKtfzajR5xo=; h=Received:Received:Content-Type:Mime-Version:Subject:From:Date: Message-Id:To; b=gxVN5Cy09z9fm87UGrGRqj5gBz5EVVP2KSiL/gEp0i5H+FU5vkW54Zrcq/mQZhnhI 9tVWld5234/kCUywNAmtRMdpDkEhlAc7vRbb9rYjqkcpPhqxTji+vV0FUAkf/VnI4o +m/nEdGVuQ8u62BNV91AUjt1kWqChrdRD9jaFaBcnS+LmrZ3ks9PBzT/UriEJgFJWZ 48gJtcfsPBEwWd4ht46PX5QZ/BJRhrLBQJd3XHHA1TLhrbgaAP99fMnkea/4e6JKgC /G+4ox+3nfS/IHGj0/QAmVIB+IxCAKjIApN4PvNSh//UDkFSVgaw7mnCHscXEdHMcB PR7uVuSnOWa5Q== X-Virus-Checked: Checked by ClamAV on apache.org On Mar 19, 2014, at 1:15 AM, Andreas B. wrote: > Hello, >=20 > I saw the new unix sockets for mod_proxy in 2.4.9 and I am wondering = why there has to be a special url format. Wouldn't it be possible to = supply the socket path as a proxy parameter? It would be. We chose otherwise. That way, we have a unified format that could be used for other things. > I have something like this in mind: >=20 > > ProxySet "unix=3D/run/php-fpm/php-fpm.sock" > > > SetHandler "proxy:fcgi://php-fpm.local" > >=20 > or with ProxyPass: > ProxyPass /php-bin "proxy:fcgi://php-fpm.local/src/http/" = "unix=3D/run/php-fpm/php-fpm.sock" > ProxyPassMatch ^(/.*\.php)$ "fcgi://php-fpm.local/srv/http/" = "unix=3D/run/php-fpm/php-fpm.sock" >=20 > I can provide an incomplete patchset for this. I didn't touch the = documentation, mod_proxy_balancer output and log messages. This would = get rid of de_socketfy() and make the codepath much cleaner I think. >=20 > Andreas >=20 > PS: I found some strange behaviour with ProxyPassMatch. When you use a = group match (e.g. $1) in the result string, you'll have to define the = parameters in a separate proxy section. This Probably applies to = ProxyPass with the regex-tilde as well > ProxyPassMatch ^(/.*\.php)$ "fcgi://php-fpm.local/srv/http/$1" > > ProxySet "unix=3D/run/php-fpm/php-fpm.sock" > >=20