Jim Jagielski
357828f9d2
Allow for a simple socket check in addition to the
...
higher level protocol-level checks for backends...
Not sure if it makes sense to do both or not... Comments?
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1516930 13f79535-47bb-0310-9956-ffa450edef68
2013-08-23 16:48:42 +00:00
Jim Jagielski
62ff5813e5
Add in logno's
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1484343 13f79535-47bb-0310-9956-ffa450edef68
2013-05-19 19:32:59 +00:00
Jim Jagielski
374bf1d928
add in child_init which is needed
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1483190 13f79535-47bb-0310-9956-ffa450edef68
2013-05-16 04:28:14 +00:00
Jim Jagielski
66b3e65e76
revert... we are good
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1483188 13f79535-47bb-0310-9956-ffa450edef68
2013-05-16 04:02:38 +00:00
Jim Jagielski
88a8e9ff61
force subpool
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1483176 13f79535-47bb-0310-9956-ffa450edef68
2013-05-16 03:06:14 +00:00
Graham Leggett
e81ec38c9c
mod_proxy: Use a global mutex for handling workers.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1482859 13f79535-47bb-0310-9956-ffa450edef68
2013-05-15 14:13:15 +00:00
Stefan Fritsch
b67b4aea82
Adjust format string
...
type was changed by r1481302
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1481397 13f79535-47bb-0310-9956-ffa450edef68
2013-05-11 19:58:03 +00:00
Graham Leggett
9a80dab0a1
mod_proxy: Reject invalid values for Max-Forwards.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1481302 13f79535-47bb-0310-9956-ffa450edef68
2013-05-11 11:47:17 +00:00
Jim Jagielski
d7c8ba3992
Mod_proxy used the global pool w/o mutex. fix.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1480627 13f79535-47bb-0310-9956-ffa450edef68
2013-05-09 13:33:02 +00:00
Graham Leggett
2628ea4fc8
mod_proxy: Clarify the usage suggestion for BalancerInherit and ProxyPassInherit.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1476680 13f79535-47bb-0310-9956-ffa450edef68
2013-04-27 21:46:57 +00:00
Daniel Ruggeri
d31632f33c
Add failontimeout to allow server admin to mark balancer member in err if IO timeout occurs.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1465839 13f79535-47bb-0310-9956-ffa450edef68
2013-04-09 00:18:42 +00:00
Christophe Jaillet
ebb48e5f59
Fix indent
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1452195 13f79535-47bb-0310-9956-ffa450edef68
2013-03-04 06:33:43 +00:00
Jim Jagielski
317eca4540
realign and fix logic
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1448630 13f79535-47bb-0310-9956-ffa450edef68
2013-02-21 13:19:30 +00:00
Jim Jagielski
0d13f604c1
ProxyPassInherit directive
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1439404 13f79535-47bb-0310-9956-ffa450edef68
2013-01-28 13:58:24 +00:00
Jim Jagielski
26ecd7b2fe
Redfine - we are just worried about balancers and workers, so have the directive clear about that.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1422980 13f79535-47bb-0310-9956-ffa450edef68
2012-12-17 15:24:40 +00:00
Jim Jagielski
26036be3a5
restrict inherit control to those fields that "require" it...
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1422943 13f79535-47bb-0310-9956-ffa450edef68
2012-12-17 14:25:46 +00:00
Rainer Jung
b63656829c
Use inherit_set to let the global server set
...
the default for all vhosts.
Otherwise inherit would need to be disabled
redundantly in each vhost.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1421912 13f79535-47bb-0310-9956-ffa450edef68
2012-12-14 15:02:30 +00:00
Jim Jagielski
755fc20b6e
be consistent
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1421882 13f79535-47bb-0310-9956-ffa450edef68
2012-12-14 14:20:26 +00:00
Jim Jagielski
e196d0d0db
inherit inherit
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1421288 13f79535-47bb-0310-9956-ffa450edef68
2012-12-13 13:36:08 +00:00
Jim Jagielski
ce9b646c73
rjung's suggestions...
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1420124 13f79535-47bb-0310-9956-ffa450edef68
2012-12-11 12:35:50 +00:00
Jim Jagielski
6ec40f4835
Allow for setting of sticky session split char...
...
Bugz 53893
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1404653 13f79535-47bb-0310-9956-ffa450edef68
2012-11-01 16:06:43 +00:00
Jim Jagielski
04954afd04
force these
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1388603 13f79535-47bb-0310-9956-ffa450edef68
2012-09-21 18:27:50 +00:00
Jeff Trawick
14833e4aa5
fix BalancerInherit command processing from r1388029
...
(still not tested)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1388444 13f79535-47bb-0310-9956-ffa450edef68
2012-09-21 11:53:01 +00:00
Jim Jagielski
b360fcb2d2
OK, enable/allow previous broken, bad behavior iff the user
...
really, really wants it. And warn that b-m isn't recommended
in those cases.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1388029 13f79535-47bb-0310-9956-ffa450edef68
2012-09-20 13:41:45 +00:00
Jim Jagielski
fdf7c1de11
and this one as well... persist isn't inherited
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1387693 13f79535-47bb-0310-9956-ffa450edef68
2012-09-19 17:46:32 +00:00
Jim Jagielski
f5f36c3f88
Oops... didn't mean to commit that.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1387691 13f79535-47bb-0310-9956-ffa450edef68
2012-09-19 17:42:38 +00:00
Jim Jagielski
38f3c64c2f
Re-instate balancer merge (for the time being) but force
...
persistence if the top-level server has it defined....
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1387684 13f79535-47bb-0310-9956-ffa450edef68
2012-09-19 17:21:55 +00:00
Jim Jagielski
2619a5308f
wtf are we doing merging in these from the parent??
...
These are server specific!
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1387603 13f79535-47bb-0310-9956-ffa450edef68
2012-09-19 14:17:03 +00:00
Jim Jagielski
1c55455c36
Use identifying server_rec info when we know we have
...
unique and useful data :)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1387444 13f79535-47bb-0310-9956-ffa450edef68
2012-09-19 03:51:25 +00:00
Jim Jagielski
53bf5b2c19
By using a consistent naming structure, we can persist
...
across stop/starts (assuming people don't change
such basics as scheme, hostname, etc...)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1387287 13f79535-47bb-0310-9956-ffa450edef68
2012-09-18 18:02:31 +00:00
Jim Jagielski
664dd95af2
Persist local balancer-manager changes across restart/graceful.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1387110 13f79535-47bb-0310-9956-ffa450edef68
2012-09-18 12:15:50 +00:00
Stefan Fritsch
ea690c5e6f
remove obsolete comment (PROXY_MAGIC_TYPE is not used anywhere anymore)
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1345329 13f79535-47bb-0310-9956-ffa450edef68
2012-06-01 20:04:44 +00:00
Ruediger Pluem
e948002f96
* Add the forcerecovery balancer parameter that determines if recovery for
...
balancer workers without considering the retry value of workers is enforced.
There might be cases where an already overloaded backend can get into deeper
trouble if the recovery of all workers is enforced without considering the
retry parameter of each worker
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1306409 13f79535-47bb-0310-9956-ffa450edef68
2012-03-28 15:22:40 +00:00
Ruediger Pluem
0dc16bb55e
* Readd the reverse assignment to avoid segfaults in ap_proxy_initialize_worker
...
PR: 52935
Obtained from: Petter Berntsen <petterb gmail.com>
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1302483 13f79535-47bb-0310-9956-ffa450edef68
2012-03-19 14:51:47 +00:00
Ruediger Pluem
b5bd03bd4e
* Correctly save the reverse proxy worker in all virtual host proxy configs.
...
PR: 52935
Obtained from: Petter Berntsen <petterb gmail.com>
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1302444 13f79535-47bb-0310-9956-ffa450edef68
2012-03-19 13:53:28 +00:00
Jim Jagielski
732f60dc2c
Handle cases, esp when using mod_proxy_fcgi, when we do not
...
want SCRIPT_FILENAME to include the query string.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1242351 13f79535-47bb-0310-9956-ffa450edef68
2012-02-09 15:07:22 +00:00
Jeff Trawick
6635e5a3da
Adjust CVE-2011-3368/CVE-2011-4317 fixes to rely solely on
...
core's translate-name to fail unsupported URIs.
Rewrite and proxy now decline what they don't support rather
than fail the request.
Suggested by: trawick
Implemented by: jorton
Tweaked by: wrowe
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1233604 13f79535-47bb-0310-9956-ffa450edef68
2012-01-19 22:23:15 +00:00
Eric Covener
2293ff191f
restore the generic proxy workers to not being address-reusable.
...
The guts of mod_proxy is not really ready for the addr and host on a
proxy_conn_rec to change over time and differ from the 1 cached in the worker.
* proxy_worker->cp->addr needs to know what host/port it cached
* conn->addr and conn->hostname need to be allocated from their own subpool
so they can be cleared as they change
* ap_proxy_determine_connection needs to be more careful about which
addr is the TCP endpoint and what we have in either cache.
* may need to avoid updating the proxy_worker addr cache if we know
the value is flipping.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1227637 13f79535-47bb-0310-9956-ffa450edef68
2012-01-05 15:41:47 +00:00
Stefan Fritsch
92e366007c
Add lots of unique tags to error log messages
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1209766 13f79535-47bb-0310-9956-ffa450edef68
2011-12-02 23:02:04 +00:00
Graham Leggett
0182b1654f
mod_proxy: Make ap_proxy_retry_worker() into an optional function. Allows
...
mod_lbmethod_bybusyness, mod_lbmethod_byrequests, mod_lbmethod_bytraffic
and mod_lbmethod_heartbeat to be loaded without mod_proxy yet being present,
which happens when modules are loaded in alphabetical order.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1209754 13f79535-47bb-0310-9956-ffa450edef68
2011-12-02 22:42:39 +00:00
Joe Orton
14fef5ae85
Fix for additional cases of URL rewriting with ProxyPassMatch or
...
RewriteRule, where particular request-URIs could result in undesired
backend network exposure in some configurations. (CVE-2011-4317)
Thanks to Prutha Parikh from Qualys for reporting this issue.
* modules/proxy/mod_proxy.c (proxy_trans): Decline to handle the "*"
request-URI. Fail for cases where r->uri does not begin with a "/".
* modules/mappers/mod_rewrite.c (hook_uri2file): Likewise.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1209432 13f79535-47bb-0310-9956-ffa450edef68
2011-12-02 12:04:20 +00:00
Jim Jagielski
1eeb516b64
Use 2 sep hashing functions to account for collisions...
...
Safe enough
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1208897 13f79535-47bb-0310-9956-ffa450edef68
2011-12-01 00:02:30 +00:00
Jim Jagielski
e13a723904
Some optimization... we have a hash, use it. Quicker than all
...
these string comparisons.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1208068 13f79535-47bb-0310-9956-ffa450edef68
2011-11-29 21:14:08 +00:00
Jim Jagielski
cde53e72f0
whitespace
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1208067 13f79535-47bb-0310-9956-ffa450edef68
2011-11-29 21:14:03 +00:00
Jim Jagielski
d2e320f509
Logic which makes the balancer "active" or not... so we can turn them
...
off and on as needed.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1207926 13f79535-47bb-0310-9956-ffa450edef68
2011-11-29 15:36:11 +00:00
Jim Jagielski
71f487a7b9
Expose the path that the balancer handles...
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1207582 13f79535-47bb-0310-9956-ffa450edef68
2011-11-28 20:46:53 +00:00
Jim Jagielski
b896ababf5
Error-check.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1207282 13f79535-47bb-0310-9956-ffa450edef68
2011-11-28 15:11:03 +00:00
Jim Jagielski
984c3a345c
Move useful and shared balancer stuff to the shm slot...
...
Provide hooks for post-config/runtime addition of
balancers.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1206286 13f79535-47bb-0310-9956-ffa450edef68
2011-11-25 19:28:14 +00:00
Stefan Fritsch
8ec7f5c5bf
great proxy logging cleanup:
...
* remove "proxy:", "FCGI", etc. prefixes and pid which are now
included in the error log format
* propagate frontend request's logconfig to backend request
* use ap_log_rerror where possible
* remove obsolete APLOG_NOERRNO
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1203859 13f79535-47bb-0310-9956-ffa450edef68
2011-11-18 21:41:09 +00:00
Stefan Fritsch
75c8dfdfdb
More error checking for ap_pregsub
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1198988 13f79535-47bb-0310-9956-ffa450edef68
2011-11-07 22:58:52 +00:00