]> granicus.if.org Git - apache/log
apache
17 years agofixed missing "edit" argument option in mod_headers.xml
Chris Darroch [Wed, 11 Oct 2006 19:44:05 +0000 (19:44 +0000)]
fixed missing "edit" argument option in mod_headers.xml
described "edit" option to mod_headers in new features

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@462917 13f79535-47bb-0310-9956-ffa450edef68

17 years agodescribe new check_config hook
Chris Darroch [Wed, 11 Oct 2006 19:40:50 +0000 (19:40 +0000)]
describe new check_config hook

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@462915 13f79535-47bb-0310-9956-ffa450edef68

17 years agoadded pre_config, check_config, and test_config hooks
Chris Darroch [Wed, 11 Oct 2006 19:39:42 +0000 (19:39 +0000)]
added pre_config, check_config, and test_config hooks
moved open_logs hook

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@462914 13f79535-47bb-0310-9956-ffa450edef68

17 years agomod_disk_cache: Implement read-while-caching.
Graham Leggett [Wed, 11 Oct 2006 04:31:18 +0000 (04:31 +0000)]
mod_disk_cache: Implement read-while-caching.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@462696 13f79535-47bb-0310-9956-ffa450edef68

17 years agomod_disk_cache: NULL fd pointers when closing them, fix missing
Graham Leggett [Tue, 10 Oct 2006 22:10:01 +0000 (22:10 +0000)]
mod_disk_cache: NULL fd pointers when closing them, fix missing
close/flush, remove some unneccessary code duplication instead
of calling the right helper in replace_brigade_with_cache().

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@462601 13f79535-47bb-0310-9956-ffa450edef68

17 years agosendfile_nonblocking() takes the _brigade_ as an argument, gets
Graham Leggett [Tue, 10 Oct 2006 21:31:36 +0000 (21:31 +0000)]
sendfile_nonblocking() takes the _brigade_ as an argument, gets
the first bucket from the brigade, finds it not to be a FILE
bucket and barfs. The fix is to pass a bucket rather than a brigade.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@462580 13f79535-47bb-0310-9956-ffa450edef68

17 years agomod_disk_cache: Do away with the write-to-file-then-move-in-place
Graham Leggett [Tue, 10 Oct 2006 21:17:47 +0000 (21:17 +0000)]
mod_disk_cache: Do away with the write-to-file-then-move-in-place
mentality.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@462571 13f79535-47bb-0310-9956-ffa450edef68

17 years agoFix rewritemap/dbd bug pointed out by Davi Arnaut, and improve error reporting.
Nick Kew [Tue, 10 Oct 2006 13:15:07 +0000 (13:15 +0000)]
Fix rewritemap/dbd bug pointed out by Davi Arnaut, and improve error reporting.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@454732 13f79535-47bb-0310-9956-ffa450edef68

17 years agoFix bugs pointed out by rpluem in rewritemap/dbd
Nick Kew [Tue, 10 Oct 2006 12:47:50 +0000 (12:47 +0000)]
Fix bugs pointed out by rpluem in rewritemap/dbd

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@454723 13f79535-47bb-0310-9956-ffa450edef68

17 years agoRetrieve optional functions in time!
Nick Kew [Tue, 10 Oct 2006 10:37:37 +0000 (10:37 +0000)]
Retrieve optional functions in time!

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@454687 13f79535-47bb-0310-9956-ffa450edef68

17 years agoAdd SQL Query capability to RewriteMap
Nick Kew [Tue, 10 Oct 2006 10:33:06 +0000 (10:33 +0000)]
Add SQL Query capability to RewriteMap

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@454683 13f79535-47bb-0310-9956-ffa450edef68

17 years agoAdd compat module by default.
Mladen Turk [Sun, 8 Oct 2006 09:58:21 +0000 (09:58 +0000)]
Add compat module by default.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@454114 13f79535-47bb-0310-9956-ffa450edef68

17 years ago* mod_proxy_balancer: Document BALANCER_ROUTE_CHANGED environment variable.
Ruediger Pluem [Fri, 6 Oct 2006 15:03:08 +0000 (15:03 +0000)]
* mod_proxy_balancer: Document BALANCER_ROUTE_CHANGED environment variable.

Submitted by: Brian Rectanus <brectanu gmail.com>
Reviewed by: rpluem

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@453630 13f79535-47bb-0310-9956-ffa450edef68

17 years agoSeems like a good idea to close the <Directory> tag in the example.
Rich Bowen [Thu, 5 Oct 2006 01:53:48 +0000 (01:53 +0000)]
Seems like a good idea to close the <Directory> tag in the example.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@453083 13f79535-47bb-0310-9956-ffa450edef68

17 years agoA few missing line breaks
Rich Bowen [Thu, 5 Oct 2006 01:51:58 +0000 (01:51 +0000)]
A few missing line breaks

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@453082 13f79535-47bb-0310-9956-ffa450edef68

17 years agoMake sure that original socket timeout gets restored
Mladen Turk [Tue, 3 Oct 2006 15:54:07 +0000 (15:54 +0000)]
Make sure that original socket timeout gets restored
even if the cping/cpong fails.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@452549 13f79535-47bb-0310-9956-ffa450edef68

17 years agoRevert 451953 and 451951. Log the real r->method that is
Mladen Turk [Tue, 3 Oct 2006 15:18:57 +0000 (15:18 +0000)]
Revert 451953 and 451951. Log the real r->method that is
unsupported by the AJP protocol.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@452536 13f79535-47bb-0310-9956-ffa450edef68

17 years ago* Sync with 2.2.x CHANGES file
Ruediger Pluem [Tue, 3 Oct 2006 12:58:24 +0000 (12:58 +0000)]
* Sync with 2.2.x CHANGES file

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@452473 13f79535-47bb-0310-9956-ffa450edef68

17 years agoWhen starting a new piped error logger for the main server, ensure
Joe Orton [Tue, 3 Oct 2006 11:40:30 +0000 (11:40 +0000)]
When starting a new piped error logger for the main server, ensure
that the new child's stderr is not a pipe to an old piped logger:

* server/log.c (log_child): Add "dummy_stderr" parameter; if set,
duplicate stdout as the stderr for the child.
(open_error_log): Add "is_main" parameter; use dummy stderr for logger
for main server only.
(ap_open_logs, ap_open_piped_log): Adjust for new open_error_log()/
log_child() parameters.

PR: 40651
Submitted by: jorton, rpluem

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@452431 13f79535-47bb-0310-9956-ffa450edef68

17 years agospellcheck
Jeff Trawick [Tue, 3 Oct 2006 10:52:12 +0000 (10:52 +0000)]
spellcheck

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@452405 13f79535-47bb-0310-9956-ffa450edef68

17 years agoSupport regexp-based manipulation of HTTP headers
Nick Kew [Tue, 3 Oct 2006 07:41:27 +0000 (07:41 +0000)]
Support regexp-based manipulation of HTTP headers

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@452330 13f79535-47bb-0310-9956-ffa450edef68

17 years agoAdd missing include for experimental is_connected.
Mladen Turk [Tue, 3 Oct 2006 07:15:46 +0000 (07:15 +0000)]
Add missing include for experimental is_connected.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@452327 13f79535-47bb-0310-9956-ffa450edef68

17 years ago* Fix precedence problem.
Ruediger Pluem [Mon, 2 Oct 2006 21:13:58 +0000 (21:13 +0000)]
* Fix precedence problem.

PR: 40658
Submitted by: Larry Cipriani <lvc lucent.com>
Reviewed by: rpluem

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@452213 13f79535-47bb-0310-9956-ffa450edef68

17 years ago* Fix precedence problem.
Ruediger Pluem [Mon, 2 Oct 2006 21:12:34 +0000 (21:12 +0000)]
* Fix precedence problem.

PR: 40656
Submitted by: Larry Cipriani <lvc lucent.com>
Reviewed by: rpluem

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@452212 13f79535-47bb-0310-9956-ffa450edef68

17 years agoBump MMN for r451575.
Mladen Turk [Mon, 2 Oct 2006 17:06:15 +0000 (17:06 +0000)]
Bump MMN for r451575.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@452125 13f79535-47bb-0310-9956-ffa450edef68

17 years agoUps. Fix typo. We are logging int, not string.
Mladen Turk [Mon, 2 Oct 2006 10:26:13 +0000 (10:26 +0000)]
Ups. Fix typo. We are logging int, not string.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@451953 13f79535-47bb-0310-9956-ffa450edef68

17 years agoIf the r->method_number is unknown the r->method
Mladen Turk [Mon, 2 Oct 2006 10:24:45 +0000 (10:24 +0000)]
If the r->method_number is unknown the r->method
is unknown or corrupted as well. Log the method number
that was not recognized.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@451951 13f79535-47bb-0310-9956-ffa450edef68

17 years agoCleanup alternate is_connected method.
Mladen Turk [Mon, 2 Oct 2006 07:06:24 +0000 (07:06 +0000)]
Cleanup alternate is_connected method.
It works for sure on win32,linux and solaris.
I do not have access to other platforms so can not
verify it works on them.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@451896 13f79535-47bb-0310-9956-ffa450edef68

17 years agoMove new struct member to the end of the struct,
Mladen Turk [Sat, 30 Sep 2006 11:26:26 +0000 (11:26 +0000)]
Move new struct member to the end of the struct,
so we can keep the compatibility.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@451582 13f79535-47bb-0310-9956-ffa450edef68

17 years agoAdd alternative is_socket_connected implementation.
Mladen Turk [Sat, 30 Sep 2006 11:04:46 +0000 (11:04 +0000)]
Add alternative is_socket_connected implementation.
It works on win32 and linux for sure, so that's why
I put it inside the #ifdef.
Of course something like that needs APR abstraction.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@451580 13f79535-47bb-0310-9956-ffa450edef68

17 years agoEnable retry=0 for the worker.
Mladen Turk [Sat, 30 Sep 2006 10:41:51 +0000 (10:41 +0000)]
Enable retry=0 for the worker.
This allows to have an option to always retry
the workers in error state instead using a
specified time.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@451575 13f79535-47bb-0310-9956-ffa450edef68

17 years agoAdd force recovery for balancer.
Mladen Turk [Sat, 30 Sep 2006 10:18:48 +0000 (10:18 +0000)]
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.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@451572 13f79535-47bb-0310-9956-ffa450edef68

17 years ago* server/mpm/prefork/prefork.c (prefork_check_config): Remove unused variable.
Joe Orton [Fri, 29 Sep 2006 14:03:13 +0000 (14:03 +0000)]
* server/mpm/prefork/prefork.c (prefork_check_config): Remove unused variable.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@451297 13f79535-47bb-0310-9956-ffa450edef68

17 years agoFollow up to r451006, use APR_STATUS_IS_TIMEUP instead of comparing against
Garrett Rooney [Fri, 29 Sep 2006 13:48:09 +0000 (13:48 +0000)]
Follow up to r451006, use APR_STATUS_IS_TIMEUP instead of comparing against
APR_TIMEUP directly.

Reported by: jorton

* modules/generators/mod_cgi.c
  (cgi_handler): Use APR_STATUS_IS_TIMEUP.

* modules/generators/mod_cgid.c
  (cgid_handler): Ditto.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@451289 13f79535-47bb-0310-9956-ffa450edef68

17 years agoFollow up to r451287, use APR_STATUS_IS_TIMEUP instead of comparing
Garrett Rooney [Fri, 29 Sep 2006 13:44:45 +0000 (13:44 +0000)]
Follow up to r451287, use APR_STATUS_IS_TIMEUP instead of comparing
against APR_TIMEUP directly.

* modules/http/http_request.c
  (ap_process_request): Use APR_STATUS_IS_TIMEUP.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@451288 13f79535-47bb-0310-9956-ffa450edef68

17 years ago* Notice a timeout as an error message. This might be valuable for detecting
Ruediger Pluem [Fri, 29 Sep 2006 13:39:53 +0000 (13:39 +0000)]
* Notice a timeout as an error message. This might be valuable for detecting
  clients with broken network connections or possible DoS attacks.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@451287 13f79535-47bb-0310-9956-ffa450edef68

17 years ago* Move the tasks of eor_bucket_destroy (status update, transaction logging) to
Ruediger Pluem [Fri, 29 Sep 2006 13:15:08 +0000 (13:15 +0000)]
* Move the tasks of eor_bucket_destroy (status update, transaction logging) to
  a cleanup function that is registered with the request pool.
  eor_bucket_destroy only destroys the request pool if there is still a request
  at this point of time which triggers the call of the cleanup function.

  This is needed as the eor bucket could be (and usually is) allocated from
  a pool different from the request pool (the connection pool in this case).
  This can lead to situations where eor_bucket_destroy is called at a point of
  time when the request pool had been already destroyed. But the status update
  and the transaction logging rely on the request pool.

  In practise this happens with the worker MPM if the client refuses to read
  the response from the handler. Then the unsent data (including the
  eor bucket) remains in a brigade allocated from the connection pool which
  is the parent of the request pool. This brigade is cleaned up during the
  cleanup of the ptrans pool in worker_thread. As the request pool gets
  destroyed during this cleanup operation *before* the brigade gets cleaned up
  eor_bucket_destroy starts the status update and the transaction logging with
  a destroyed request pool which leads to a segfault.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@451279 13f79535-47bb-0310-9956-ffa450edef68

17 years ago* Notice that reading of the request entity body failed due to a timeout
Ruediger Pluem [Thu, 28 Sep 2006 20:15:42 +0000 (20:15 +0000)]
* Notice that reading of the request entity body failed due to a timeout

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@451006 13f79535-47bb-0310-9956-ffa450edef68

17 years agoMinor typo
Rich Bowen [Wed, 27 Sep 2006 15:10:33 +0000 (15:10 +0000)]
Minor typo

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@450473 13f79535-47bb-0310-9956-ffa450edef68

17 years agomod_cache: Eliminate a bogus error in the log when a filter returns
Graham Leggett [Wed, 27 Sep 2006 14:21:26 +0000 (14:21 +0000)]
mod_cache: Eliminate a bogus error in the log when a filter returns
AP_FILTER_ERROR.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@450453 13f79535-47bb-0310-9956-ffa450edef68

17 years agoAllocate the temporary copy file buffer from a pool.
Graham Leggett [Tue, 26 Sep 2006 20:35:42 +0000 (20:35 +0000)]
Allocate the temporary copy file buffer from a pool.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@450188 13f79535-47bb-0310-9956-ffa450edef68

17 years agomod_disk_cache: Make caching of large files possible on 32bit machines
Graham Leggett [Tue, 26 Sep 2006 16:26:56 +0000 (16:26 +0000)]
mod_disk_cache: Make caching of large files possible on 32bit machines
by determining whether the cached file should be copied on disk rather
than loaded into RAM. PR39380

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@450105 13f79535-47bb-0310-9956-ffa450edef68

17 years agomod_mem_cache: Convert mod_mem_cache to use APR memory pool functions
Graham Leggett [Tue, 26 Sep 2006 15:37:02 +0000 (15:37 +0000)]
mod_mem_cache: Convert mod_mem_cache to use APR memory pool functions
by creating a root pool for object persistence across requests. This
also eliminates the need for custom serialization code.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@450089 13f79535-47bb-0310-9956-ffa450edef68

17 years agoMemory leak fix: Unconditionally free the buffer.
Graham Leggett [Tue, 26 Sep 2006 14:56:01 +0000 (14:56 +0000)]
Memory leak fix: Unconditionally free the buffer.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@450070 13f79535-47bb-0310-9956-ffa450edef68

17 years agomod_cache: From RFC3986 (section 6.2.3.) if a URI contains an
Graham Leggett [Tue, 26 Sep 2006 14:36:43 +0000 (14:36 +0000)]
mod_cache: From RFC3986 (section 6.2.3.) if a URI contains an
authority component and an empty path, the empty path is to be equivalent
to "/". It explicitly cites the following four URIs as equivalents:
  http://example.com
  http://example.com/
  http://example.com:/
  http://example.com:80/

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@450063 13f79535-47bb-0310-9956-ffa450edef68

17 years agoDon't cache requests with a expires date in the past; otherwise mod_cache will
Graham Leggett [Tue, 26 Sep 2006 14:12:36 +0000 (14:12 +0000)]
Don't cache requests with a expires date in the past; otherwise mod_cache will
always try to cache the URL. This bug might lead to numerous rename() errors
on win32 if the URL was previously cached.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@450055 13f79535-47bb-0310-9956-ffa450edef68

17 years agomod_disk_cache: Make sure that only positive integers are accepted
Graham Leggett [Tue, 26 Sep 2006 13:29:09 +0000 (13:29 +0000)]
mod_disk_cache: Make sure that only positive integers are accepted
for the CacheMaxFileSize and CacheMinFileSize parameters in the
config file. PR39380 [Niklas Edmundsson <nikke acc.umu.se>]

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@450042 13f79535-47bb-0310-9956-ffa450edef68

17 years agoChange wording as suggested by jslive.
Nick Kew [Sun, 24 Sep 2006 23:17:31 +0000 (23:17 +0000)]
Change wording as suggested by jslive.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@449522 13f79535-47bb-0310-9956-ffa450edef68

17 years agoAdd extra explanatory clause to VirtualHost docs
Nick Kew [Sun, 24 Sep 2006 22:29:59 +0000 (22:29 +0000)]
Add extra explanatory clause to VirtualHost docs

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@449514 13f79535-47bb-0310-9956-ffa450edef68

17 years agoCapitalization consistency
Rich Bowen [Fri, 22 Sep 2006 18:13:10 +0000 (18:13 +0000)]
Capitalization consistency
Submitted by Vincent Bray

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@449032 13f79535-47bb-0310-9956-ffa450edef68

17 years agoSmall typo.
Rich Bowen [Fri, 22 Sep 2006 18:11:05 +0000 (18:11 +0000)]
Small typo.
Submitted by Vincent Bray

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@449030 13f79535-47bb-0310-9956-ffa450edef68

17 years agoGeneric fix for PR#31759
Nick Kew [Thu, 21 Sep 2006 22:13:34 +0000 (22:13 +0000)]
Generic fix for PR#31759
If a handler returns a value that is neither reserved nor a valid
HTTP response code, log an error and substitute HTTP_INTERNAL_SERVER_ERROR.
Allow a handler to override this explicitly by setting a note.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@448711 13f79535-47bb-0310-9956-ffa450edef68

17 years ago* modules/cache/mod_cache.h: Fix comment that was obviously cut and
Garrett Rooney [Wed, 20 Sep 2006 15:06:52 +0000 (15:06 +0000)]
* modules/cache/mod_cache.h: Fix comment that was obviously cut and
  pasted from mod_proxy...

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@448229 13f79535-47bb-0310-9956-ffa450edef68

17 years ago* modules/cache/mod_cache.h
Garrett Rooney [Wed, 20 Sep 2006 15:04:38 +0000 (15:04 +0000)]
* modules/cache/mod_cache.h
  (CACHE_DECLARE, CACHE_DECLARE_NONSTD, CACHE_DECLARE_DATA): Remove
   duplicate defines.

Submitted by: Davi Arnaut <davi@haxent.com.br>

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@448226 13f79535-47bb-0310-9956-ffa450edef68

17 years ago* Set the new environment variable BALANCER_ROUTE_CHANGED if a worker with a
Ruediger Pluem [Sat, 16 Sep 2006 19:49:41 +0000 (19:49 +0000)]
* Set the new environment variable BALANCER_ROUTE_CHANGED if a worker with a
  route different from the one supplied by the client had been chosen or if
  the client supplied no routing information for a balancer with sticky
  sessions.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@446929 13f79535-47bb-0310-9956-ffa450edef68

17 years agonote a backport; don't forget that trunk had an additional
Jeff Trawick [Fri, 15 Sep 2006 13:28:40 +0000 (13:28 +0000)]
note a backport; don't forget that trunk had an additional
change

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@446609 13f79535-47bb-0310-9956-ffa450edef68

17 years ago* PROXY_WORKER_IS_INITIALIZED checks if PROXY_WORKER_INITIALIZED is set in
Ruediger Pluem [Thu, 14 Sep 2006 22:34:34 +0000 (22:34 +0000)]
* PROXY_WORKER_IS_INITIALIZED checks if PROXY_WORKER_INITIALIZED is set in
  worker->s->status, but we need to check here if it is set in worker->status.

  As PROXY_WORKER_INITIALIZED is set in worker->s->status in
  ap_proxy_initialize_worker_share, which is called just before
  ap_proxy_initialize_worker we never initialize the worker. This is very bad
  as we create no reslist for the pool in this case.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@443503 13f79535-47bb-0310-9956-ffa450edef68

17 years agoPR 31759 (mutated) - reported by Jo Rhett
Nick Kew [Tue, 12 Sep 2006 23:44:12 +0000 (23:44 +0000)]
PR 31759 (mutated) - reported by Jo Rhett
Don't return apr_status_t error value from input filter chain.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@442758 13f79535-47bb-0310-9956-ffa450edef68

17 years ago* Print the correct error message for erroneous configured ProxyPass directives.
Ruediger Pluem [Sun, 10 Sep 2006 12:37:21 +0000 (12:37 +0000)]
* Print the correct error message for erroneous configured ProxyPass directives.

PR: 40439
Submitted by: serai lans-tv.com
Reviewed by: rpluem

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@441947 13f79535-47bb-0310-9956-ffa450edef68

17 years agoAllow htcacheclean, httxt2dbm, and fcgistarter to link apr/apr-util
Jeff Trawick [Sat, 9 Sep 2006 15:26:05 +0000 (15:26 +0000)]
Allow htcacheclean, httxt2dbm, and fcgistarter to link apr/apr-util
statically like the older support programs.

Submitted by: Eric Covener <covener gmail.com>
Reviewed by:  Jeff Trawick

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@441796 13f79535-47bb-0310-9956-ffa450edef68

17 years agoUpdate backports
Jim Jagielski [Wed, 6 Sep 2006 17:38:13 +0000 (17:38 +0000)]
Update backports

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@440801 13f79535-47bb-0310-9956-ffa450edef68

17 years agoReplace ap_get_server_version with ap_get_server_banner() and
Jeff Trawick [Tue, 5 Sep 2006 13:08:15 +0000 (13:08 +0000)]
Replace ap_get_server_version with ap_get_server_banner() and
ap_get_server_description().

High-level summary:

The full server version information is now included in the error log at
startup as well as server status reports, irrespective of the setting
of the ServerTokens directive.

Third-party modules must now use ap_get_server_banner() or
ap_get_server_description() in place of ap_get_server_version().

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@440337 13f79535-47bb-0310-9956-ffa450edef68

17 years ago* Extract stickysession information correctly in the case that it is given
Ruediger Pluem [Mon, 4 Sep 2006 19:51:52 +0000 (19:51 +0000)]
* Extract stickysession information correctly in the case that it is given
  as parameter like in the following example:

  www.someplace.com/somewhere/?jsessionid=gggfgdufdfoef.server&parameter=value

  So far we were only able to handle stickysession information encoded in the
  following form:

  www.someplace.com/somewhere/;jsessionid=gggfgdufdfoef.server?parameter=value

PR: 40400

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@440160 13f79535-47bb-0310-9956-ffa450edef68

17 years agoHandle filter names which include capital letters.
Jeff Trawick [Mon, 4 Sep 2006 11:08:53 +0000 (11:08 +0000)]
Handle filter names which include capital letters.

PR: 40323

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@440028 13f79535-47bb-0310-9956-ffa450edef68

17 years ago Sync these to VC 2005, a .manifest file is created that we need to
William A. Rowe Jr [Sun, 3 Sep 2006 22:59:48 +0000 (22:59 +0000)]
  Sync these to VC 2005, a .manifest file is created that we need to
  invoke the generators

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@439870 13f79535-47bb-0310-9956-ffa450edef68

17 years ago Silence VC2005 faux-errors in pcre with the minimum tweak required.
William A. Rowe Jr [Sat, 2 Sep 2006 19:23:01 +0000 (19:23 +0000)]
  Silence VC2005 faux-errors in pcre with the minimum tweak required.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@439639 13f79535-47bb-0310-9956-ffa450edef68

18 years agoupdate transformation
André Malo [Mon, 28 Aug 2006 18:43:17 +0000 (18:43 +0000)]
update transformation

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@437774 13f79535-47bb-0310-9956-ffa450edef68

18 years agofix validation error
André Malo [Mon, 28 Aug 2006 18:37:09 +0000 (18:37 +0000)]
fix validation error

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@437773 13f79535-47bb-0310-9956-ffa450edef68

18 years agoMinor nit: why make the logic more complex than it needs to
Jim Jagielski [Mon, 28 Aug 2006 17:57:24 +0000 (17:57 +0000)]
Minor nit: why make the logic more complex than it needs to
be ? :)

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@437768 13f79535-47bb-0310-9956-ffa450edef68

18 years agoThese have been approved for backport and or in/will be in
Jim Jagielski [Mon, 28 Aug 2006 16:38:01 +0000 (16:38 +0000)]
These have been approved for backport and or in/will be in
2.2.4

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@437749 13f79535-47bb-0310-9956-ffa450edef68

18 years ago* Note the changes that were done in revisions
Ruediger Pluem [Mon, 28 Aug 2006 11:29:23 +0000 (11:29 +0000)]
* Note the changes that were done in revisions

  422731
  422736
  422739
  423940
  424759
  424950
  425109
  426790
  426791
  426793
  426795

  (deflate output filter) and

  416165
  426799

  (inflate output filter)

PR: 39854

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@437668 13f79535-47bb-0310-9956-ffa450edef68

18 years ago* Close connection to backend if reading of request body fails.
Ruediger Pluem [Thu, 24 Aug 2006 19:53:14 +0000 (19:53 +0000)]
* Close connection to backend if reading of request body fails.

PR: 40310
Submitted by: Ian Abel <ianabel mxtelecom.com>
Reviewed by: rpluem

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@434483 13f79535-47bb-0310-9956-ffa450edef68

18 years agoFix contributed by Bjarne D Mathiesen <macintosh@mathiesen.info>
Noirin Plunkett [Wed, 23 Aug 2006 16:20:35 +0000 (16:20 +0000)]
Fix contributed by  Bjarne D Mathiesen <macintosh@mathiesen.info>

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@434071 13f79535-47bb-0310-9956-ffa450edef68

18 years agoStale Bugzilla link as noted by Christophe Jaillet
Sander Temme [Tue, 22 Aug 2006 20:41:03 +0000 (20:41 +0000)]
Stale Bugzilla link as noted by Christophe Jaillet

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@433743 13f79535-47bb-0310-9956-ffa450edef68

18 years agoAllow the typical non-DAV methods to be unrestricted
Joshua Slive [Tue, 22 Aug 2006 17:07:54 +0000 (17:07 +0000)]
Allow the typical non-DAV methods to be unrestricted
in our DAV examples (in particular, POST).  Also
change <Location> to <Directory> in the docs.  This
particular example was not a security problem because
<Location> was being used to *extend* access, rather than
to *restrict* access, but it is better to encourage
people to use <Directory> by default.

PR: 40030

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@433694 13f79535-47bb-0310-9956-ffa450edef68

18 years agoMy last effort was a little too succinct and not quite precise
Joshua Slive [Sun, 20 Aug 2006 19:46:24 +0000 (19:46 +0000)]
My last effort was a little too succinct and not quite precise
enough.  Try being more explicit.

This does leave the danger that people will clip the <Location>
example as the proper way to do things, when they should be
reading on to the <Directory> example.  The <Location> example
is only correct when used in conjunction with Alias.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@433021 13f79535-47bb-0310-9956-ffa450edef68

18 years agoAdd a note about case-sensitivity to the windows platform docs.
Joshua Slive [Sun, 20 Aug 2006 18:48:24 +0000 (18:48 +0000)]
Add a note about case-sensitivity to the windows platform docs.
Partially in response to the disputed vulnerability:
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2006-4110

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@433005 13f79535-47bb-0310-9956-ffa450edef68

18 years agoMake it clear that url-path is always case-sensitive.
Joshua Slive [Sun, 20 Aug 2006 18:08:43 +0000 (18:08 +0000)]
Make it clear that url-path is always case-sensitive.
Provide an example of using a regex to make it case-insensitive.
Make it clear that ScriptAlias is only used when you want
BOTH mapping and script-designation.

Partially in response to the disputed vulnerability:
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2006-4110

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@432997 13f79535-47bb-0310-9956-ffa450edef68

18 years agoupdate convmap
André Malo [Fri, 18 Aug 2006 22:08:26 +0000 (22:08 +0000)]
update convmap

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@432743 13f79535-47bb-0310-9956-ffa450edef68

18 years agofix eol-style
André Malo [Fri, 18 Aug 2006 19:16:54 +0000 (19:16 +0000)]
fix eol-style

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@432686 13f79535-47bb-0310-9956-ffa450edef68

18 years agoupdate transformation
André Malo [Fri, 18 Aug 2006 18:09:09 +0000 (18:09 +0000)]
update transformation

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@432667 13f79535-47bb-0310-9956-ffa450edef68

18 years agoUpdates docs w/ transforms. Use Andre's patch to lib/DocUtil.pm
Jim Jagielski [Fri, 18 Aug 2006 13:09:12 +0000 (13:09 +0000)]
Updates docs w/ transforms. Use Andre's patch to lib/DocUtil.pm
to work around some OS X issues which mangled paths

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@432570 13f79535-47bb-0310-9956-ffa450edef68

18 years agoLog a message if we try to prepare a statement not attached to a hostname.
Nick Kew [Fri, 18 Aug 2006 12:38:28 +0000 (12:38 +0000)]
Log a message if we try to prepare a statement not attached to a hostname.
This fix supplements r432560 (don't crash).

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@432562 13f79535-47bb-0310-9956-ffa450edef68

18 years agoDon't use NULL s->server_hostname as hash lookup key.
Nick Kew [Fri, 18 Aug 2006 12:16:13 +0000 (12:16 +0000)]
Don't use NULL s->server_hostname as hash lookup key.
Reported by paritosh (at limewire.co.in) on dev@httpd (thread
Re: apache 2.2 crashes at the start time in mod_dbd.c then preparing AuthDBDUserPWQuery)
Fixed by paritosh and Yours Truly.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@432560 13f79535-47bb-0310-9956-ffa450edef68

18 years agoUpdate docs and transforms
Jim Jagielski [Thu, 17 Aug 2006 19:41:07 +0000 (19:41 +0000)]
Update docs and transforms

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@432360 13f79535-47bb-0310-9956-ffa450edef68

18 years agoFix context error
Jim Jagielski [Thu, 17 Aug 2006 19:40:17 +0000 (19:40 +0000)]
Fix context error

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@432359 13f79535-47bb-0310-9956-ffa450edef68

18 years agoUpdate docs for proxy:
Jim Jagielski [Thu, 17 Aug 2006 19:21:33 +0000 (19:21 +0000)]
Update docs for proxy:

  1. Put params in abc order
  2. Add hot-standby example
  3. Add in new features that hadn't been documented yet (lbset, ...)

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@432352 13f79535-47bb-0310-9956-ffa450edef68

18 years agoIntroduce a check_config phase between pre_config and open_logs,
Chris Darroch [Mon, 14 Aug 2006 22:55:45 +0000 (22:55 +0000)]
Introduce a check_config phase between pre_config and open_logs,
to allow modules to review interdependent configuration directive
values and adjust them while messages can still be logged to the
console.

The open_logs phase is already used somewhat for this purpose by
certain MPMs (winnt, prefork, worker, and event) but only by forcing
their functions ahead of the core ap_open_logs() function, and
since this phase runs after the ap_signal_server function during startup,
it can not be used to generate messages on the console when restarting.

Add the check_config phase to mod_info and mod_example.

Handle relevant MPM directives during this phase and format messages
for both the console and the error log, as appropriate.  Bounds and sanity
checks on the values of the MPM directives are handled in sequence in
this phase instead of in the various directive handling functions, since
those functions (e.g., set_max_clients()) may not be called at all if their
directives do not appear in the configuration files, and even if they
are called, there is no guarantee that this will occur in any particular
order.

Remove from the worker and event MPMs the code in the pre_config phase
that alters the configuration node tree by re-ordering ThreadsPerChild
ahead of MaxClients.  This code is effective but insufficient; for
example, if ServerLimit follows MaxClients, the test against server_limit
in set_max_clients() is invalid.  (In practice, this only results in
incorrect or absent warnings on the console, because server_limit is
set to its configured value when the main loop re-runs the configuration
process.)

Prevent ap_threads_per_child from exceeding thread_limit in the
winnt, worker, and event MPMs.  This situation could occur if
ThreadsPerChild was not specified in the configuration files and
ThreadLimit was set to a value smaller than DEFAULT_THREADS_PER_CHILD,
because set_threads_per_child() would never be called and therefore
its bounds check against thread_limit would not be performed.

Remove from the winnt, prefork, worker, and event MPMs the
changed_limit_at_restart flag.  Set the first_server_limit and
first_thread_limit values during the first execution of the check_config
function, and use them to detect changes to ServerLimit and ThreadLimit
across restarts and issue appropriately formatted warnings.  Remove the
comments about the error log being a "bit bucket"; this was true when
the code was originally committed in r92530 but that was due to a bug
fixed in r92769.

Be consistent about setting all MPM configuration directive values in the
pre_config phase.

Rephrase and reformat the console and log file messages relating to
MPM configuration directives to be consistent across all MPMs.  Use
briefer messages when logging to the error log than to the console.

Update miscellaneous stale comments and messages (e.g., reference to
daemons_min_free in worker and event MPMs, "prefork open_logs" in
winnt MPM, and StartServers in netware MPM).

The winnt, netware, beos, and mpmt_os2 MPMs should be tested by developers
with access to those platforms, especially the winnt MPM, which has
unique logic with respect to distinguishing between parent and child
processes during the configuration phases.

Update the English documentation for the worker MPM's ThreadsPerChild
directive, which no longer needs to precede other MPM directives in the
configuration files if it has a non-default value.  The German (.de) and
Japanese (.ja) translations should be updated by developers fluent in
those languages.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@431460 13f79535-47bb-0310-9956-ffa450edef68

18 years agoNote bugfix
Nick Kew [Mon, 14 Aug 2006 13:35:03 +0000 (13:35 +0000)]
Note bugfix

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@431342 13f79535-47bb-0310-9956-ffa450edef68

18 years agoPR#37770: Don't try to use dead backend connection in proxy
Nick Kew [Mon, 14 Aug 2006 13:26:07 +0000 (13:26 +0000)]
PR#37770: Don't try to use dead backend connection in proxy
(Patch from Olivier BOEL)

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@431339 13f79535-47bb-0310-9956-ffa450edef68

18 years agoFix tabs introduced in r429875
Nick Kew [Tue, 8 Aug 2006 23:50:33 +0000 (23:50 +0000)]
Fix tabs introduced in r429875

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@429890 13f79535-47bb-0310-9956-ffa450edef68

18 years agoThat proxy change was functional, even if it was just one character:-)
Nick Kew [Tue, 8 Aug 2006 23:33:21 +0000 (23:33 +0000)]
That proxy change was functional, even if it was just one character:-)

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@429883 13f79535-47bb-0310-9956-ffa450edef68

18 years agoPR#38448: don't URLencode tilde in path component
Nick Kew [Tue, 8 Aug 2006 23:27:25 +0000 (23:27 +0000)]
PR#38448: don't URLencode tilde in path component
On reflection, this patch makes sense (since the URL spec got updated), and it's trivial.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@429879 13f79535-47bb-0310-9956-ffa450edef68

18 years agoFix style (indentation at least) to apache style rules before reviewing top of this.
Nick Kew [Tue, 8 Aug 2006 23:18:23 +0000 (23:18 +0000)]
Fix style (indentation at least) to apache style rules before reviewing top of this.
No functional change.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@429875 13f79535-47bb-0310-9956-ffa450edef68

18 years ago Observed by hunter - fix the cut n paste errors in some .res compilation
William A. Rowe Jr [Sat, 5 Aug 2006 20:04:40 +0000 (20:04 +0000)]
  Observed by hunter - fix the cut n paste errors in some .res compilation
  steps of the win32 build.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@429038 13f79535-47bb-0310-9956-ffa450edef68

18 years ago Document that httpd -L doesn't list shared modules.
Chris Pepper [Sat, 5 Aug 2006 02:53:59 +0000 (02:53 +0000)]
Document that httpd -L doesn't list shared modules.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@428941 13f79535-47bb-0310-9956-ffa450edef68

18 years agorevert the definitive bit for the reject directive.
Bradley Nicholes [Fri, 4 Aug 2006 17:56:50 +0000 (17:56 +0000)]
revert the definitive bit for the reject directive.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@428800 13f79535-47bb-0310-9956-ffa450edef68

18 years agorevert the reject directive is definitive patch and normalize the logic lists.
Bradley Nicholes [Fri, 4 Aug 2006 17:53:27 +0000 (17:53 +0000)]
revert the reject directive is definitive patch and normalize the logic lists.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@428798 13f79535-47bb-0310-9956-ffa450edef68

18 years agoInitialization change. Move to a different format
Jim Jagielski [Thu, 3 Aug 2006 11:41:14 +0000 (11:41 +0000)]
Initialization change. Move to a different format
to force resets as well as a common technique, in case
_route is updated at some point.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@428361 13f79535-47bb-0310-9956-ffa450edef68

18 years agoReset standby flags for each loop through the cluster sets
Jim Jagielski [Thu, 3 Aug 2006 11:30:11 +0000 (11:30 +0000)]
Reset standby flags for each loop through the cluster sets

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@428352 13f79535-47bb-0310-9956-ffa450edef68