1
0
mirror of https://github.com/apache/httpd.git synced 2026-01-25 07:01:39 +03:00
Commit Graph

2867 Commits

Author SHA1 Message Date
Bradley Nicholes
f9ae19893c Added the NetWare make files to build the proxy modules
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94729 13f79535-47bb-0310-9956-ffa450edef68
2002-04-19 21:01:16 +00:00
Bradley Nicholes
e08a4842d4 Added the NetWare .def files to build the proxy modules
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94728 13f79535-47bb-0310-9956-ffa450edef68
2002-04-19 21:00:27 +00:00
Paul J. Reder
ef6c5b6076 Moved the call to apr_mmap_dup outside the error branch so
that it would actually get called. This fixes a core dump
 at init everytime you use the MMapFile directive. [Paul J. Reder]


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94721 13f79535-47bb-0310-9956-ffa450edef68
2002-04-19 19:16:23 +00:00
Jeff Trawick
e90e977d15 Trigger an error when a LoadModule directive attempts to
load a module which is built-in.  This is a common error when
switching from a DSO build to a static build.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94719 13f79535-47bb-0310-9956-ffa450edef68
2002-04-19 18:31:20 +00:00
Justin Erenkrantz
1826f624eb Switch ap_http_filter to use ap_get_brigade and apr_brigade_flatten
instead of ap_getline - this prevents some odd looping issues that
can cause problems.

Also, when we call get_mime_headers to read the trailers, we need
to reset our ctx->state to BODY_NONE - there should only be MIME-header
information (followed by a blank CRLF line) - and we don't know
how much data there will be - so it is by definition BODY_NONE.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94704 13f79535-47bb-0310-9956-ffa450edef68
2002-04-18 22:50:54 +00:00
Justin Erenkrantz
ba6cf79dee Fix so that we can compile with OpenSSL 0.9.8-dev.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94696 13f79535-47bb-0310-9956-ffa450edef68
2002-04-18 08:45:34 +00:00
Bill Stoddard
82e823ea90 Fix seg fault when garbage collecting an expired entry. remove_entity
should just remove the object from the cache and set the cleanup flag
in the object. decrement_refcount will clean the object up when the refcount
goes to zero.

Defect reported by Jean-Jacques Clar at Novell.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94683 13f79535-47bb-0310-9956-ffa450edef68
2002-04-17 18:52:32 +00:00
Jeff Trawick
8afc887cae don't call strchr(); we have a safer version -- ap_strchr_c()
Submitted by:	Stas Bekman
Reviewed by:	Jeff Trawick


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94677 13f79535-47bb-0310-9956-ffa450edef68
2002-04-17 13:06:32 +00:00
Justin Erenkrantz
4d16513418 Fix subreqs with non-defined Content-Types being served improperly.
If we do not know a C-T for a subreq, we *must* propogate that
non-knowledge upwards to the main request.

Previously, if you used a DirectoryIndex with a file without a C-T (say
.shtml without AddType), the r->content_type will be kept as
httpd/unix-directory when we promoted the subreq in mod_dir.  Since there
would be no handler on this file, ap_invoke_handler (config.c:355) would
set the handler to be httpd/unix-directory (which was the old C-T of the
dir).  This would then trigger the handler to become httpd/unix-directory.
mod_autoindex would then try to serve the request.  But, the filename
was propogated upwards by mod_dir's DirectoryIndex via
internal_fast_redirect - it would then return a 403 trying to generate a
mod_autoindex page for a file.

Now, we will use ap_default_type() which is correct.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94676 13f79535-47bb-0310-9956-ffa450edef68
2002-04-17 04:09:07 +00:00
Justin Erenkrantz
b92d0b62b3 Move 100 - Continue support to the HTTP_IN filter so that filters
are guaranteed to support 100 - Continue logic without any
intervention.

This requires some reshuffling of the code in http_protocol.c so
that some static declarations are available early enough in the
code so that ap_http_filter can access them.

Note that we can not read the chunk until after (possibly) sending the
100.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94668 13f79535-47bb-0310-9956-ffa450edef68
2002-04-16 05:50:37 +00:00
Justin Erenkrantz
6f208d31a7 Adds support for reading trailers on input by exporting get_mime_headers
to ap_get_mime_headers and calling it in the appropriate place in
ap_http_filter.

showstoppers--;


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94667 13f79535-47bb-0310-9956-ffa450edef68
2002-04-16 05:43:09 +00:00
Greg Ames
d4a51d0f74 ap_send_error_response: reset r->output filters to the protocol filters.
The equivalent logic was deleted when request filters were renamed to
RESOURCE filters.  This fixes the seg faults that sometimes happen on
daedalus after a bogus 416 HTTP response is generated.

In this case, includes_filter had found an <!--#include virtual > tag, and
sent a brigade representing the data before it down the filter chain.  The
byterange filter generated the bogus 416.  ap_send_error_response essentially
starts over with a new response, but it didn't do anything to clean up the
filter chain.  So the same instance of the includes_filter got driven from the
top with the canned error text and and EOS bucket, which confused the heck
out of it.  It inserted a sentinel from the original brigade into the
error page brigade, causing problems further down the filter chain.

Submitted by:	Greg Ames, Jeff Trawick


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94662 13f79535-47bb-0310-9956-ffa450edef68
2002-04-15 20:42:45 +00:00
William A. Rowe Jr
8d26799604 Respect the process_cgi argument
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94639 13f79535-47bb-0310-9956-ffa450edef68
2002-04-13 22:34:16 +00:00
William A. Rowe Jr
e97e2e539c process_cgi is more descriptive than replace_cmd.
It also affects query_string args.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94638 13f79535-47bb-0310-9956-ffa450edef68
2002-04-13 20:42:35 +00:00
William A. Rowe Jr
14bba29a4d If we have a registry command or a shebang line invocation, correct the
invocation type to APR_PROGRAM_PATH so we will both search the path, and
  accept undecorated names, e.g. "perl" should be acceptable for "perl.exe".


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94636 13f79535-47bb-0310-9956-ffa450edef68
2002-04-13 19:55:00 +00:00
William A. Rowe Jr
fe28459eb0 Wasted at least 20 minutes reparsing this code till I determined it's
correct.  But make the sucker legible so noone else repeats the experience.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94635 13f79535-47bb-0310-9956-ffa450edef68
2002-04-13 19:52:59 +00:00
William A. Rowe Jr
596ccf1b44 In order for Win32 to accept the shebang line of #!perl so we 1) search
the PATH and 2) resolve perl.exe for perl, we must add the progtype so
  we can override APR_PROGRAM with APR_PROGRAM_PATH.  This is the API change
  only for the cgi build command line option function.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94634 13f79535-47bb-0310-9956-ffa450edef68
2002-04-13 19:50:46 +00:00
Sander Striker
6e8efec657 Adapt to the rename of apr_explode_localtime to apr_time_exp_lt in APR.
Submitted by: Thom May <thom@planetarytramp.net>


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94631 13f79535-47bb-0310-9956-ffa450edef68
2002-04-13 12:02:38 +00:00
Cliff Woolley
131658da39 Touch these files so that their datestamps are newer than the corresponding
.y and .l files.  These must be kept newer than those at all times to avoid
introducing a dependency on flex and yacc.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94623 13f79535-47bb-0310-9956-ffa450edef68
2002-04-12 17:46:09 +00:00
Jeff Trawick
4b8619de1b update the instructions for how to get started with mod_example
Submitted by:  Stas Bekman


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94620 13f79535-47bb-0310-9956-ffa450edef68
2002-04-12 11:20:47 +00:00
William A. Rowe Jr
fe4ce8bde6 Flip the order. If the user specifies ScriptInterpreterSource,
either Registry or RegistryStrict, test the registry in preference
  over a shebang line.  This is how 1.3 behaved, and allows scripts
  with invalid shebang lines (straight from another box, for example)
  to run without modification.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94618 13f79535-47bb-0310-9956-ffa450edef68
2002-04-12 06:35:15 +00:00
Aaron Bannert
9ff0d84088 Convert mod_ssl to the new apr_global_mutex.h API and remove all
uses of apr_lock.h [deprecated]. Tested that I could serve simple
SSL (v3) pages.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94583 13f79535-47bb-0310-9956-ffa450edef68
2002-04-09 15:53:09 +00:00
Jeff Trawick
3f3d6de769 move a loop-invariant computation out of the thread loop and
at the same time quiet a gcc warning (it assumed that thread_limit
could be zero, which would leave ps_record uninitialized when
referenced after the end of the thread loop)


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94579 13f79535-47bb-0310-9956-ffa450edef68
2002-04-09 11:18:41 +00:00
Graham Leggett
ab32e62ac3 Proxy was bombing out every second keepalive request, caused by a
stray CRLF before the second response's status line. Proxy now
tries to read one more line if it encounters a CRLF where it
expected a status.
PR: 10010
Obtained from:
Submitted by:
Reviewed by:


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94574 13f79535-47bb-0310-9956-ffa450edef68
2002-04-09 09:39:04 +00:00
Doug MacEachern
4157e579bf PR:
Obtained from:
Submitted by:   Ryan Morgan <rmorgan@covalent.net>
Reviewed by:	dougm, jimjag
Change mod_status to use scoreboard accessor functions so it can
be used in any MPM without having to be recompiled.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94558 13f79535-47bb-0310-9956-ffa450edef68
2002-04-09 01:55:44 +00:00
Doug MacEachern
e34ebac504 another todo
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94547 13f79535-47bb-0310-9956-ffa450edef68
2002-04-08 19:07:58 +00:00
Doug MacEachern
9fb5b384d7 PR:
Obtained from:
Submitted by:	Daniel Lopez <daniel@covalent.net>
Reviewed by:	dougm, rbb
add optional fixup hook to proxy


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94544 13f79535-47bb-0310-9956-ffa450edef68
2002-04-08 18:38:56 +00:00
Jeff Trawick
f4c4f97322 fix the function name in the prototype for dav_get_search_hooks()
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94532 13f79535-47bb-0310-9956-ffa450edef68
2002-04-08 12:46:41 +00:00
Doug MacEachern
bb2d86e811 PR: 7802
Obtained from:
Submitted by:
Reviewed by:
fix compilation problem in ssl_engine_kernel.c
if SSL_LIBRARY_VERSION >= 0x00907000


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94527 13f79535-47bb-0310-9956-ffa450edef68
2002-04-07 21:58:25 +00:00
Doug MacEachern
5653644f78 PR:
Obtained from:
Submitted by:
Reviewed by:
ssl_io_input_read now returns APR_EOF if ssl_io_hook_read returns 0
bytes for a reason other than SSL_ERROR_WANT_READ.  this should
prevent a possible endless loop.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94519 13f79535-47bb-0310-9956-ffa450edef68
2002-04-07 06:32:21 +00:00
Doug MacEachern
1138615486 fix ProxyPass when frontend is https and backend is http
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94515 13f79535-47bb-0310-9956-ffa450edef68
2002-04-07 03:37:35 +00:00
Graham Leggett
22d4e9ea8b Quick fix to an incorrect comment.
PR:
Obtained from:
Submitted by:
Reviewed by:


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94501 13f79535-47bb-0310-9956-ffa450edef68
2002-04-06 12:43:47 +00:00
Sander Striker
05eb8c17d0 Add DASL(SEARCH) support to mod_dav.
Submitted by:	Sung Kim <hunkim@cse.ucsc.edu>


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94486 13f79535-47bb-0310-9956-ffa450edef68
2002-04-06 01:11:50 +00:00
Greg Stein
56186138d6 Port over some fixes to mod_dav 1.0 so that the Apache 2.0 DAV code
will pass the "litmus" DAV test tool.

In particular, we need to properly handle empty namespaces properly.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94482 13f79535-47bb-0310-9956-ffa450edef68
2002-04-06 00:19:19 +00:00
Ryan Bloom
c3d4e4787a Fix a segfault. Only try to set this if the sub_Request has a c-t.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94471 13f79535-47bb-0310-9956-ffa450edef68
2002-04-05 21:24:13 +00:00
Ryan Bloom
b18ca18f8d If we are doing a fast_redirect, and we don't have a main request, then
make sure that we don't have the sub_req_output_filter.  This was
causing problems when there were multiple sub_Requests, and some should
have had the filter, but the last one shouldn't.

This fixes the final known bug in 2.0.35


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94470 13f79535-47bb-0310-9956-ffa450edef68
2002-04-05 21:16:11 +00:00
William A. Rowe Jr
e5200732d3 Correct partitioning of filter handles between core and http, and
export the handle pointers on Win32.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94468 13f79535-47bb-0310-9956-ffa450edef68
2002-04-05 20:55:00 +00:00
William A. Rowe Jr
41354689f4 Clean up breakage introduced recently that sent the wrong headers through
the http_headers output filter.  Now we will always point every filter at
  the 'redirected' request, e.g. the actual error message response rather
  than the request that failed.

Reviewed by: JimJag, Rbb, DougM


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94467 13f79535-47bb-0310-9956-ffa450edef68
2002-04-05 20:06:52 +00:00
Aaron Bannert
1e8b1a0dbc Update mod_rewrite to use the new APR global mutex type.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94465 13f79535-47bb-0310-9956-ffa450edef68
2002-04-05 20:01:20 +00:00
Doug MacEachern
e695ae9601 PR:
Obtained from:
Submitted by:
Reviewed by:    Ryan Bloom
remove flush bucket from ap_proxy_http_process_response.
this allows for the response content-length header to be properly
calculated/inserted.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94459 13f79535-47bb-0310-9956-ffa450edef68
2002-04-05 18:08:07 +00:00
Ryan Bloom
45cb1e8190 This is a HACK! The problem is that the fast_internal_redirect is
removing the OLD_WRITE filter. Obviously that is wrong.  For right now,
the fix is to hack around the problem and just make it work.  Long term,
we need to find a real solution to this, but this gets autoindex working
today.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94457 13f79535-47bb-0310-9956-ffa450edef68
2002-04-05 17:50:37 +00:00
Ryan Bloom
f25b712539 This fixes the mod_autoindex problem of not getting the list of files.
The problem was that the internal_fast_redirect removed the SUB_REQ
filter, but we are still in a sub_request.  The solution is to have the
fast_internal_Redirect function check if we are in a sub_Request and
re-add the filter if we are.
Submitted by:	Ryan Bloom, Greg Ames, Jeff Trawick, and Will Rowe


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94456 13f79535-47bb-0310-9956-ffa450edef68
2002-04-05 17:43:03 +00:00
Brian Pane
2fc975e2a2 Fix for the boundary case in which each character of an SSI directive
is in a separate bucket...the code in send_parsed_content() doesn't
expect a case where ctx->state==PARSE_DIRECTIVE but ctx->tag_start_buffer
is NULL.  So in found_start_sequence(), we set ctx->tag_start_buffer
to point to the next bucket if the end of the <!--# is at the very
end of the current bucket.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94454 13f79535-47bb-0310-9956-ffa450edef68
2002-04-05 07:44:14 +00:00
Cliff Woolley
c1c583494e Get the HTTP-on-HTTPS hint to come through again. We're in AP_MODE_GETLINE
at this point, so the \r\n\r\n just confuses the http input filter.

One concern: this patch is only correct as long as we only ever call this
function while in AP_MODE_GETLINE.  Ideally we would account for the mode
and return the newlines if not in GETLINE mode, but at the moment it doesn't
seem to matter.

Reviewed by: Doug MacEachern


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94453 13f79535-47bb-0310-9956-ffa450edef68
2002-04-05 07:31:44 +00:00
Cliff Woolley
43ed28845e Get rid of overlay bogosity by copying the static string to the stack.
This keeps DEBUG_INCLUDE from segfaulting.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94451 13f79535-47bb-0310-9956-ffa450edef68
2002-04-05 07:03:07 +00:00
Brian Pane
60bfb86cef Remove an invalid comment. (The only way that the bucket will
contain only a single byte is if slen==1, meaning that we've
replaced <!--# with a single-character token, and that character
is the first character in the bucket.  If that happens, then
pos+slen (aka 1) is the right amount by which to increase
bytes_parsed.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94450 13f79535-47bb-0310-9956-ffa450edef68
2002-04-05 06:03:30 +00:00
Cliff Woolley
f81d8b681b Silence an irrelevant gcc warning
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94449 13f79535-47bb-0310-9956-ffa450edef68
2002-04-05 05:23:11 +00:00
Cliff Woolley
386e8eca4c Fix variable name typo
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94448 13f79535-47bb-0310-9956-ffa450edef68
2002-04-05 05:05:20 +00:00
William A. Rowe Jr
066aeb1b7e Mix 'n match signedness? Make some emits go away.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94445 13f79535-47bb-0310-9956-ffa450edef68
2002-04-05 04:20:22 +00:00
Doug MacEachern
7bb6d7d1ee PR:
Obtained from:
Submitted by:
Reviewed by:
avoid the error_log message: [error] mod_ssl: Certificate Verification: Error ...
if SSLProxyVerify is not configured or set to "none".
the verify callback does not happen in the server context when
SSLVerify is not configured or set to "none".


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94444 13f79535-47bb-0310-9956-ffa450edef68
2002-04-05 02:31:04 +00:00