Bug 43513

Summary: Persistent backend connections for ProxyPassMatch
Product: Apache httpd-2 Reporter: Takashi Sato <takashi.asfbugzilla>
Component: mod_proxyAssignee: Apache HTTPD Bugs Mailing List <bugs>
Status: NEW ---    
Severity: normal CC: abhishek.k.sharma, rich
Priority: P3 Keywords: PatchAvailable
Version: 2.5-HEAD   
Target Milestone: ---   
Hardware: All   
OS: All   
Bug Depends on: 43472    
Bug Blocks:    
Attachments: for trunk
rebased patch

Description Takashi Sato 2007-09-29 00:24:35 UTC
ProxyPassMatch creates a worker like ProxyPass does, but it uses regex URI for 
a worker name.
For example, your httpd.conf:

ProxyPassMatch ^/test/(\d+)/foo.jpg http://backend.example.com/$1/foo.jpg

then worker name is "http://backend.example.com/$1/foo.jpg", so URL never 
matches and the worker is no longer used.
Comment 1 Takashi Sato 2007-09-29 00:27:09 UTC
Created attachment 20896 [details]
for trunk

When the scheme or the hostname contains '$', skips.
When the path contains '$', use a path before '$' for the worker name.
Comment 2 Takashi Sato 2007-09-29 09:22:24 UTC
I've reviewed mod_proxy.c.
I've not tested yet, but this issue is not only about persistent connection 
but parameters (min, max, smax, timeout, ping, flushpackets and so) ?
Comment 3 jkaluza 2013-09-13 12:13:42 UTC
Created attachment 30834 [details]
rebased patch

The idea remains same, just changed style a bit and rebased to latest trunk.
Comment 4 jkaluza 2014-07-14 07:44:24 UTC
Fixed in httpd-trunk in r1609680 and r1608744.