Bug 43513 - Persistent backend connections for ProxyPassMatch
Summary: Persistent backend connections for ProxyPassMatch
Status: NEW
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: mod_proxy (show other bugs)
Version: 2.5-HEAD
Hardware: All All
: P3 normal (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
URL:
Keywords: PatchAvailable
Depends on: 43472
Blocks:
  Show dependency tree
 
Reported: 2007-09-29 00:24 UTC by Takashi Sato
Modified: 2014-07-14 07:44 UTC (History)
1 user (show)



Attachments
for trunk (1.11 KB, patch)
2007-09-29 00:27 UTC, Takashi Sato
Details | Diff
rebased patch (1.28 KB, patch)
2013-09-13 12:13 UTC, jkaluza
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.