1
0
mirror of https://github.com/apache/httpd.git synced 2026-10-23 22:49:01 +03:00
Commit Graph

5331 Commits

Author SHA1 Message Date
Jim Jagielski
1a216eca67 More trunk backporting
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/httpd-2.2-proxy@809545 13f79535-47bb-0310-9956-ffa450edef68
2009-08-31 11:41:33 +00:00
Jim Jagielski
fdbbba3802 Unused
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/httpd-2.2-proxy@774773 13f79535-47bb-0310-9956-ffa450edef68
2009-05-14 14:13:06 +00:00
Jim Jagielski
94a600cfbf minor clean
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/httpd-2.2-proxy@774429 13f79535-47bb-0310-9956-ffa450edef68
2009-05-13 16:56:50 +00:00
Jim Jagielski
8add30621f Sync up with trunk
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/httpd-2.2-proxy@774427 13f79535-47bb-0310-9956-ffa450edef68
2009-05-13 16:55:06 +00:00
Jim Jagielski
a13b94e430 And un-module the files
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/httpd-2.2-proxy@772335 13f79535-47bb-0310-9956-ffa450edef68
2009-05-06 16:01:37 +00:00
Jim Jagielski
666508d21d Move away from sub-modules
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/httpd-2.2-proxy@772334 13f79535-47bb-0310-9956-ffa450edef68
2009-05-06 16:00:22 +00:00
Jim Jagielski
0829152d5d Autogen'ed
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/httpd-2.2-proxy@772331 13f79535-47bb-0310-9956-ffa450edef68
2009-05-06 15:56:31 +00:00
Jim Jagielski
eced674f69 Remove some -trunk foo-nis
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/httpd-2.2-proxy@772290 13f79535-47bb-0310-9956-ffa450edef68
2009-05-06 14:50:52 +00:00
Jim Jagielski
3788e4cf66 Oh joy. Fold in backportable proxy changes/improvements
from trunk as of r772279



git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/httpd-2.2-proxy@772280 13f79535-47bb-0310-9956-ffa450edef68
2009-05-06 14:33:45 +00:00
Jim Jagielski
3b1cbbe244 At least for right now, mod_heartbeat is not proposed for 2.2.x
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/httpd-2.2-proxy@772266 13f79535-47bb-0310-9956-ffa450edef68
2009-05-06 13:56:20 +00:00
Jim Jagielski
bbc0d504e5 Add these in from trunk...
We can easily remove should we wish to maintain the
2.2 dev struct...


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/httpd-2.2-proxy@772263 13f79535-47bb-0310-9956-ffa450edef68
2009-05-06 13:48:54 +00:00
Jim Jagielski
b54a5accad Merge r757741 from trunk:
* Fix a memory leak by freeing the memory consumed by the bucket.

PR: 44948
Submitted by: Dan Poirier <poirier pobox.com>
Reviewed by: rpluem

Submitted by: rpluem
Reviewed/backported by: jim


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@766002 13f79535-47bb-0310-9956-ffa450edef68
2009-04-17 13:44:27 +00:00
Jim Jagielski
da1b3b0a47 Merge r755190 from trunk:
* APR_BUCKET_NEXT is wrong here as we are already a doing a APR_BUCKET_NEXT in
  the for loop and this causes us to jump *two* buckets forward. This can cause
  us to jump over the Sentinel of the brigade and thus causes an endless loop.


Submitted by: rpluem
Reviewed/backported by: jim


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@766001 13f79535-47bb-0310-9956-ffa450edef68
2009-04-17 13:42:57 +00:00
Jim Jagielski
5cd8c3e860 Merge r756671, r756675, r756678, r756683 from trunk:
Creation of external gzip process fails, if we
try to set the working directory to r->filename.
Use ap_make_dirstr_parent() instead, like in all
other similar places.


Creating the external gzip process fails, because we
call execve() with "gzip" without full path.
Let's look for it in the PATH instead and drop the
passing of the environment. There seems to be no
reason why gzip should need the httpd environment.


Set the content encoding for compressed content
even if we can't detect the content type of the
uncompressed content.


When trying to detect the content type of the
uncompressed content it is often not enough
to read the same number of bytes, we already
read compressed. Since uncompress() allocates a
new buffer, we can increase the number of bytes
to read to the same size, we use in the case,
where the content isn't compressed.

Furthermore zero-terminate the read data to keep
assumptions consistent with the uncompressed case.

Submitted by: rjung
Reviewed/backported by: jim


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@765999 13f79535-47bb-0310-9956-ffa450edef68
2009-04-17 13:42:03 +00:00
Jim Jagielski
bbc16c8d6d Merge r761329 from trunk:
The remote port information was forgotten from the builtin
data of the AJP 13 protocol.  Since the servlet spec allows
to retrieve it via getRemotePort(), we provide the port to
the Tomcat connector as an additional request attribute.
Modern/future Tomcat versions know how to retrieve
the remote port from the attribute AJP_REMOTE_PORT.

See:
https://issues.apache.org/bugzilla/show_bug.cgi?id=41263
http://svn.eu.apache.org/viewvc?view=rev&revision=756926
http://svn.eu.apache.org/viewvc?view=rev&revision=757223

Submitted by: rjung
Reviewed/backported by: jim


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@765998 13f79535-47bb-0310-9956-ffa450edef68
2009-04-17 13:40:08 +00:00
Jim Jagielski
0d6dfd0bb1 Approved backedports:
-     http://svn.apache.org/viewvc?view=rev&revision=649162
-     http://svn.apache.org/viewvc?view=rev&revision=649176
-     http://svn.apache.org/viewvc?view=rev&revision=649460



git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@765997 13f79535-47bb-0310-9956-ffa450edef68
2009-04-17 13:36:50 +00:00
Roy T. Fielding
592d71ba45 Revert changes in 2.2.11 that caused an invalid
etag to be emitted for on-the-fly gzip content-encoding.
PR 39727 will require larger fixes and this fix was far more
harmful than the original code.

PR: 45023, 39727


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@761835 13f79535-47bb-0310-9956-ffa450edef68
2009-04-03 23:16:03 +00:00
Jim Jagielski
70699d021e Backported and commited
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@752129 13f79535-47bb-0310-9956-ffa450edef68
2009-03-10 15:00:54 +00:00
Lars Eilebrecht
e0790fb1e7 mod_disk_cache now turns off sendfile support if 'EnableSendfile off'
is defined globally.

Reviewed by: Ruediger Pluem, Issac Goldstand, Niklas Edmundsson



git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@746552 13f79535-47bb-0310-9956-ffa450edef68
2009-02-21 17:38:33 +00:00
Jim Jagielski
25909a1241 Merge r743589 from trunk:
mod_version needs to be compiled because the test framework requires it
(and the feature doesn't make much sense if it crashes httpd on test).

Submitted by: fielding
Reviewed/backported by: jim


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@743852 13f79535-47bb-0310-9956-ffa450edef68
2009-02-12 19:43:52 +00:00
Jim Jagielski
6922d12efb Approvd
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@739860 13f79535-47bb-0310-9956-ffa450edef68
2009-02-01 21:59:35 +00:00
Eric Covener
cf61a2ec9f Merge r734703 from trunk:
* Set the error time if we set a worker in error mode.

Submitted by: rpluem
Reviewed By: rpluem, trawick, pgollucci




git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@739610 13f79535-47bb-0310-9956-ffa450edef68
2009-01-31 20:58:07 +00:00
Eric Covener
99cf2dc9d6 Merge r726109, r733465, r733467, r733695 from trunk:
mod_ssl: Make the size of the per-dir-reneg request-body buffer
configurable, by popular demand:

* modules/ssl/ssl_private.h: Define DEFAULT_RENEG_BUFFER_SIZE.
  (SSLDirConfigRec): Add nRenegBufferSize field.

* modules/ssl/ssl_engine_config.c (ssl_cmd_SSLRenegBufferSize): New
  function.
  (ssl_config_perdir_create, ssl_config_perdir_merge): Handle
  nRenegBufferSize.

* modules/ssl/ssl_engine_io.c (ssl_io_buffer_fill): Take max buffer
  size as an argument rather than compile-time constant.

* modules/ssl/ssl_engine_kernel.c (ssl_hook_Access): Pass
  nRenegBufferSize to ssl_io_buffer_fill.

* modules/ssl/mod_ssl.c (ssl_config_cmds): Add SSLRenegBufferSize.

PR: 39243


* Correctly merge SSLRenegBufferSize directive.

PR: 46508
Submitted by: <tlhackque yahoo.com>
Reviewed by: rpluem, jorton, pgollucci

* Add a stub documentation for SSLRenegBufferSize.


* docs/manual/mod/mod_ssl.xml: Flesh out SSLRenegBufferSize
 docs a little - thanks rpluem!



git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@739605 13f79535-47bb-0310-9956-ffa450edef68
2009-01-31 20:51:37 +00:00
Eric Covener
b4834e3949 Merge r728015, r728220, r728020 from trunk:
*) mod_rewrite: Introduce DiscardPathInfo|DPI flag to stop the troublesome
    way that per-directory rewrites append the previous notion of PATH_INFO
    to each substitution before evaluating subsequent rules.
    PR38642 [Eric Covener]

  axe r->path_info in a more standard way, suggested by Aleksander Budzynowski 
  doc typo spotted by Vincent Bray

Submitted By: Eric Covner
Reviewed by: jorton, pgolluci



git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@739600 13f79535-47bb-0310-9956-ffa450edef68
2009-01-31 20:41:58 +00:00
Paul J. Reder
4fe5557603 Commit approved revision 732912 backport of PR 46342
*) mod_authnz_ldap: Reduce number of initialization debug messages and make
     information more clear. PR 46342 [Dan Poirier]


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@734895 13f79535-47bb-0310-9956-ffa450edef68
2009-01-16 02:45:23 +00:00
Jim Jagielski
8cffdcdc51 Merge r729316, r729317 from trunk:
look for 'no-cache' in subprocess_env to prevent the saving
of an otherwise cacheable response.


document no-cache envvar

Submitted by: covener
Reviewed/backported by: jim


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@733762 13f79535-47bb-0310-9956-ffa450edef68
2009-01-12 14:07:10 +00:00
Jim Jagielski
30f4e49aaf Merge r732832, r733134, r733218 from trunk:
Translate locally generated "100-Continue" message to
ASCII on EBCDIC systems.


EBCDIC fix for ap_send_interim_response()



simplifications per niq's review comments

Submitted by: covener
Reviewed/backported by: jim


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@733759 13f79535-47bb-0310-9956-ffa450edef68
2009-01-12 14:03:38 +00:00
Jim Jagielski
d066ba3e92 Merge r729586, r732504 from trunk:
CGI: return 504 (Gateway timeout) rather than 500 when a script
times out before returning status line/headers.
PR 42190


Improve canned 504 error message in the light of r729586 and covener's comment.

Submitted by: niq
Reviewed/backported by: jim


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@733757 13f79535-47bb-0310-9956-ffa450edef68
2009-01-12 13:59:56 +00:00
Jim Jagielski
936301d265 Merge r733127, r733219 from trunk:
pass a server_rec to ap_log_error on two interim response messages
 


use ap_log_rerror instead of r->server per niq's comments

Submitted by: covener
Reviewed/backported by: jim


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@733756 13f79535-47bb-0310-9956-ffa450edef68
2009-01-12 13:56:19 +00:00
Nick Kew
76a96f2011 Backport r731358/731388/731594
mod_ext_filter: introduce sane error handling when the filter program
fails to start, including an onfail configuration option.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@732586 13f79535-47bb-0310-9956-ffa450edef68
2009-01-08 01:39:02 +00:00
Nick Kew
37d373a8f1 Backport r730296: fix for HTML entity escaping in mod_include,
including enhancement of ap_escape_html API.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@732583 13f79535-47bb-0310-9956-ffa450edef68
2009-01-08 01:24:16 +00:00
Nick Kew
59ef0409ac Backport r730274
Fix mod_rewrite "B" flag breakage
PR 45529


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@732578 13f79535-47bb-0310-9956-ffa450edef68
2009-01-08 01:13:36 +00:00
Jeff Trawick
bba3f20d6c backport the last byte of r731963
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@732113 13f79535-47bb-0310-9956-ffa450edef68
2009-01-06 20:49:34 +00:00
Nick Kew
b5fe066179 mod_cgid: backport fix for segfault on (older) Solaris.
r729579, r731963, r731965
PR 39332


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@732067 13f79535-47bb-0310-9956-ffa450edef68
2009-01-06 19:20:58 +00:00
Paul J. Reder
1f1ed15d42 Commit promoted backport of PR 45994.
*) mod_ldap: Avoid a segfault when result->rc is checked in uldap_connection_init
     when result is NULL. This could happen if LDAP initialization failed.
     PR 45994.  [Dan Poirier <poirier pobox.com>]


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@727773 13f79535-47bb-0310-9956-ffa450edef68
2008-12-18 17:31:03 +00:00
Paul J. Reder
36601869bd Commit promoted backport of PR46401
*) mod_cache: Correctly save Content-Encoding of cachable entity. PR 46401
    [Dan Poirier <poirier pobox.com>]


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@727767 13f79535-47bb-0310-9956-ffa450edef68
2008-12-18 17:14:53 +00:00
Ruediger Pluem
8825d114f6 Merge r727452 from trunk:
Output -M and -S dumps (modules and vhosts) to stdout instead of stderr.

Submitted by: Dan Poirier <poirier pobox.com>
Reviewed by: rederpj, covener, rpluem


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@727616 13f79535-47bb-0310-9956-ffa450edef68
2008-12-18 01:46:00 +00:00
Paul J. Reder
f2fe9e4e22 Committing the following that was voted in:
When an expires or cache-control header are sent, the RFC does allow us to cache normally non-cacheable response statuses.
Submitted by: Alex Polvi <alex polvi.net>



git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@727599 13f79535-47bb-0310-9956-ffa450edef68
2008-12-18 00:25:16 +00:00
Eric Covener
47168163bd Merge r722213,r722081, and r721679 from trunk:
* Avoid sending no answer at all if a custom error page causes an
  AP_FILTER_ERROR.

* allow ap_invoke_handler() to pass-through AP_FILTER_ERROR as if it were
  a reserved status code (OK/DECLINED/SUSPENDED). Prevents ap_die() from seeing a
  500 error when the http header filter has already taken care of the proper
  error response

* To be safe, consume the entire brigade after processing an error bucket in
  the HTTP output filter.



git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@722642 13f79535-47bb-0310-9956-ffa450edef68
2008-12-02 22:28:21 +00:00
Eric Covener
989cdfd9eb Merge r689261 from trunk:
Add option to insert something in autoindex head.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@721731 13f79535-47bb-0310-9956-ffa450edef68
2008-11-29 21:47:13 +00:00
Jim Jagielski
60ba8573a6 Merge r693120, r720250 from trunk:
Add in useful feature. %k which logs the keepalives
value.
PR: 45762
        Dan Poirier <poirier@pobox.com>


Make %k work as it should. No regression noted in perl
test framework.

Reviewed by: jim


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@721033 13f79535-47bb-0310-9956-ffa450edef68
2008-11-26 23:24:20 +00:00
Ruediger Pluem
48e87ab719 Merge r411464 from trunk:
* info->expire and info->date are in microseconds. So convert the difference
  to seconds before comparing it to age which is in seconds.

PR: 39713
Submitted by: Owen Taylor <otaylor redhat.com>
Reviewed by: rpluem, jim, jfclere


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@720171 13f79535-47bb-0310-9956-ffa450edef68
2008-11-24 11:30:35 +00:00
Ruediger Pluem
39adc01624 Merge r709666 from trunk:
* Use distinct char pointers for sending and receiving buffers to avoid
  destroying the pointer to the sending buffer in the ajp message if
  data is received from the backend before all data is sent to the
  backend.

PR: 45911

Submitted by: rpluem
Reviewed by: rpluem, jim, jfclere


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@714273 13f79535-47bb-0310-9956-ffa450edef68
2008-11-15 14:25:54 +00:00
Ruediger Pluem
f061a45fce Merge r451572 from trunk:
Add force recovery for balancer.
In case all balancer members were in error state 503
was returned until the recovery timeout expired.
The patch forces recovery in case all balancer members
are in error state regardless of recovery timeout
directive.
This fixes the time gap when 503 was returned and
backend was already up and running.

Submitted by: mturk
Reviewed by: jim, rpluem, jfclere


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@714270 13f79535-47bb-0310-9956-ffa450edef68
2008-11-15 14:16:23 +00:00
Jim Jagielski
a10438c040 *) mod_proxy: Prevent segmentation faults by correctly adjusting the lifetime
of the buckets read from the proxy backend. PR 45792 [Ruediger Pluem]



git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@713146 13f79535-47bb-0310-9956-ffa450edef68
2008-11-11 20:04:34 +00:00
Jim Jagielski
3bf0124dd3 * mod_proxy: Add the possibility to set the worker parameters
connectiontimeout and ping in milliseconds. 
     Trunk version of patch:
       http://svn.apache.org/viewvc?rev=705005&view=rev
       http://svn.apache.org/viewvc?rev=707022&view=rev
     Backport version for 2.2.x of patch:
       http://people.apache.org/~rpluem/patches/milli_seconds.diff
     +1: rpluem, pgollucci, jim



git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@713145 13f79535-47bb-0310-9956-ffa450edef68
2008-11-11 20:01:59 +00:00
Jim Jagielski
039c677673 Merge r707163 from trunk:
Remove potential for memory leak... allocate on this
request which is now viable due to connection pooling.

Reviewed by: jim


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@713143 13f79535-47bb-0310-9956-ffa450edef68
2008-11-11 20:00:10 +00:00
Jim Jagielski
e70c653dcd Merge r708902 from trunk:
Avoid time traveling :)

Reviewed by: jim


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@713142 13f79535-47bb-0310-9956-ffa450edef68
2008-11-11 19:59:22 +00:00
Jim Jagielski
272457b2bd Merge r711421 from trunk:
Holey moley. Marcus Burke noted this in Rich's Nuts/Bolts talk.
How embarassing! 

Reviewed by: jim


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@713141 13f79535-47bb-0310-9956-ffa450edef68
2008-11-11 19:58:26 +00:00
Ruediger Pluem
08c6e19302 Merge r707649, r707665 from trunk:
AJP was dropping pre-existing cookies. Use same logic
as HTTP to tuck them away


* save_table needs to be declared first before it can be used.

Reviewed by: rpluem, jim, mturk


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@711850 13f79535-47bb-0310-9956-ffa450edef68
2008-11-06 12:23:17 +00:00