]> granicus.if.org Git - apache/log
apache
23 years agoChanges for previous ap_proxy_doconnect() calling
Chuck Murcko [Tue, 14 Nov 2000 19:32:03 +0000 (19:32 +0000)]
Changes for previous ap_proxy_doconnect() calling
PR:
Obtained from:
Submitted by:
Reviewed by:

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

23 years agoGet the proxy working again. With this change in, I have successfully
Ryan Bloom [Tue, 14 Nov 2000 18:27:58 +0000 (18:27 +0000)]
Get the proxy working again.  With this change in, I have successfully
proxied a page from perl.apache.org.

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

23 years agoSimplify ap_proxy_doconnect(); now returns apr_status_t
Chuck Murcko [Tue, 14 Nov 2000 17:15:11 +0000 (17:15 +0000)]
Simplify ap_proxy_doconnect(); now returns apr_status_t
PR:
Obtained from:
Submitted by:
Reviewed by:

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

23 years agoIgnore generated file pcre.h.
Jeff Trawick [Tue, 14 Nov 2000 12:10:29 +0000 (12:10 +0000)]
Ignore generated file pcre.h.

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

23 years agoGet "make install" to work on Tru64.
Jeff Trawick [Tue, 14 Nov 2000 12:00:44 +0000 (12:00 +0000)]
Get "make install" to work on Tru64.

With Tru64, make picks up a bad status from the child shell process
when it evaluates the "`echo ($static) | grep 'mod_so'` (see below),
causing make to bail out.

But that grep should always fail when "make install" runs in
modules/extra and unless we have mod_so it will fail when "make
install" runs in modules/standard.

The work-around is to explicitly ignore the exit status from the
grep.

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

23 years agoRemove the change from earlier tonight to not send a content-length of
Ryan Bloom [Tue, 14 Nov 2000 06:41:37 +0000 (06:41 +0000)]
Remove the change from earlier tonight to not send a content-length of
0.
Submitted by: Roy Fielding

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

23 years agoStop the default_handler from trying to deal with HEAD requests. By doing
Ryan Bloom [Tue, 14 Nov 2000 06:11:24 +0000 (06:11 +0000)]
Stop the default_handler from trying to deal with HEAD requests.  By doing
this, the content-length filter can determine the C-L before we send the
response, and we get a better response.

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

23 years agoMake the header filter decide if a body should be sent. This gives us a
Ryan Bloom [Tue, 14 Nov 2000 06:07:40 +0000 (06:07 +0000)]
Make the header filter decide if a body should be sent.  This gives us a
chance to compute the proper content-length before we try to send a set
of headers.  If a handler wants to ignore the HEAD method, then it can
either just return from the handler function or pass an EOS bucket down
the filter stack.  Either method will still get the headers sent to the
client.

This change allows handlers to actually run the request like it is a GET
request.  The core itself will then ensure that no body is sent.  This
allows us to get more information about the request before sending out the
headers for the HEAD request.

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

23 years agoIf the content-length is zero, then we don't output the Content-Length
Ryan Bloom [Tue, 14 Nov 2000 04:52:33 +0000 (04:52 +0000)]
If the content-length is zero, then we don't output the Content-Length
header file.  The only time that the C-L should be zero is if there is
no body.  Zero is a valid content-length, but the only time that we ever
really send it is on a HEAD request right now, and that is incorrect.
The HEAD response should have the actual content's length.

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

23 years agoAssociate a pool with the pool bucket so that it serves it's intended
Ryan Bloom [Tue, 14 Nov 2000 04:22:03 +0000 (04:22 +0000)]
Associate a pool with the pool bucket so that it serves it's intended
purpose.  This also moves the create_pool function outside of an if to
decrease complexity.

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

23 years agoAdd the referer to the error log if one is available.
Ryan Bloom [Tue, 14 Nov 2000 02:42:51 +0000 (02:42 +0000)]
Add the referer to the error log if one is available.
PR: 73
Submitted by: Markus Gyger <mgyger@itr.ch>

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

23 years agoInclude ap_config.h to get the definition of AP_DECLARE_DATA.
Jeff Trawick [Tue, 14 Nov 2000 02:30:35 +0000 (02:30 +0000)]
Include ap_config.h to get the definition of AP_DECLARE_DATA.

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

23 years agoGet http_core to compile again after the last change.
Jeff Trawick [Tue, 14 Nov 2000 02:13:41 +0000 (02:13 +0000)]
Get http_core to compile again after the last change.

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

23 years agoPort mod_info to 2.0. This is basically a complete re-write to use the
Ryan Bloom [Tue, 14 Nov 2000 01:55:26 +0000 (01:55 +0000)]
Port mod_info to 2.0.  This is basically a complete re-write to use the
config tree instead of re-reading the config file.  As a part of this
change, the config tree needs to be exposed to modules as ap_conftree.
Submitted by: Ryan Morgan <rmorgan@covalent.net>
Reviewed by: Ryan Bloom

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

23 years agoWe can not use heap buckets for data that was allocated out of a pool.
Ryan Bloom [Tue, 14 Nov 2000 01:46:39 +0000 (01:46 +0000)]
We can not use heap buckets for data that was allocated out of a pool.
The basic problem is that when the pool is destroyed, the data will go
away unless it is in a pool bucket.  If it is in a pool bucket, then the
data will be copied into a heap bucket when the pool is destroyed.  This
becomes a real issue when we set some data off to the side to deal with
pipelined requests.

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

23 years agoGet rid of warning on Tru64:
Jeff Trawick [Tue, 14 Nov 2000 01:45:11 +0000 (01:45 +0000)]
Get rid of warning on Tru64:

cc: Info: mod_vhost_alias.c, line 469: Extraneous semicolon. (extrasemi)
};
-^

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

23 years agoGet the default_handler to use the bucket code directly. This keeps us
Ryan Bloom [Mon, 13 Nov 2000 23:42:40 +0000 (23:42 +0000)]
Get the default_handler to use the bucket code directly.  This keeps us
from traveling down the stack multiple time for a static page.

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

23 years agoUpdate coalesce filter to use heap buckets rather than pool buckets. This should...
Bill Stoddard [Mon, 13 Nov 2000 22:52:19 +0000 (22:52 +0000)]
Update coalesce filter to use heap buckets rather than pool buckets. This should fix the
mod_autoindex funky chunking behaviour until the ap_r* routines are reimplemented, at which
time this filter should probably go away.

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

23 years agoGet send the content-type header sent correctly for both regular requests
Ryan Bloom [Mon, 13 Nov 2000 20:23:41 +0000 (20:23 +0000)]
Get send the content-type header sent correctly for both regular requests
and byteranges.
Submitted by:   Ryan Bloom and Will Rowe

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

23 years agoUpdate the httpd.exp file.
Ryan Bloom [Mon, 13 Nov 2000 18:45:46 +0000 (18:45 +0000)]
Update the httpd.exp file.
Submitted by: Victor J. Orlikowski <v.j.orlikowski@gte.net>

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

23 years ago Win32 symlink (NTFS Junction) support for mod_rewrite
William A. Rowe Jr [Mon, 13 Nov 2000 18:11:12 +0000 (18:11 +0000)]
  Win32 symlink (NTFS Junction) support for mod_rewrite

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

23 years agoFix type complaints on Xlc.
Ryan Bloom [Mon, 13 Nov 2000 16:26:42 +0000 (16:26 +0000)]
Fix type complaints on Xlc.
Submitted by: Victor J. Orlikowski <v.j.orlikowski@gte.net>

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

23 years agoThe core handler should never close a file, because we haven't actually
Ryan Bloom [Mon, 13 Nov 2000 14:19:41 +0000 (14:19 +0000)]
The core handler should never close a file, because we haven't actually
sent the file yet.  This also removes the send_http_headers call, because
that's a no-op so it doesn't make much sense to leave it in.

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

23 years agoGet the hints file working on Linux. This also gets SINGLE_LISTEN....
Ryan Bloom [Mon, 13 Nov 2000 04:50:34 +0000 (04:50 +0000)]
Get the hints file working on Linux.  This also gets SINGLE_LISTEN....
working on linux 2.2.

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

23 years agoChange mod_rewrite's tilde expansion to use apr_get_home_directory().
Jeff Trawick [Mon, 13 Nov 2000 04:12:28 +0000 (04:12 +0000)]
Change mod_rewrite's tilde expansion to use apr_get_home_directory().

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

23 years agoClean up some of the warnings from a Tru64 build, mostly due to
Jeff Trawick [Mon, 13 Nov 2000 03:50:16 +0000 (03:50 +0000)]
Clean up some of the warnings from a Tru64 build, mostly due to
the recent apr_ssize_t->apr_size_t changes.  The problem in mod_cgid
was an int function which didn't have a return statement.

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

23 years agoGet SINGLE_LISTEN_UNSERIALIZED_ACCEPT working again. This defines that
Ryan Bloom [Mon, 13 Nov 2000 03:42:02 +0000 (03:42 +0000)]
Get SINGLE_LISTEN_UNSERIALIZED_ACCEPT working again. This defines that
macro on those platforms that have it defined in 1.3.  The only platform
that doesn't work yet is Linux 2.2.

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

23 years agoadd apr_get_home_directory(), teach mod_userdir to use that
Jeff Trawick [Mon, 13 Nov 2000 03:18:18 +0000 (03:18 +0000)]
add apr_get_home_directory(), teach mod_userdir to use that
instead of calling getpwnam[_r] directly, back out mod_userdir's
config check for getpwnam_r

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

23 years agoFix a few broken links.
Joshua Slive [Mon, 13 Nov 2000 02:03:37 +0000 (02:03 +0000)]
Fix a few broken links.

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

23 years agoTypo in mod_rewrite.html.
Joshua Slive [Sun, 12 Nov 2000 20:19:08 +0000 (20:19 +0000)]
Typo in mod_rewrite.html.

PR: 6835
Submitted by: ap@rupp.de

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

23 years agoThe whole proxy compiles cleanly now. Now we need to make it actually work
Ryan Bloom [Sat, 11 Nov 2000 18:34:10 +0000 (18:34 +0000)]
The whole proxy compiles cleanly now.  Now we need to make it actually work
again, but at least we are making progress.

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

23 years agoproxy_ftp and proxy_http both compile now. Not tested because the rest of
Ryan Bloom [Sat, 11 Nov 2000 18:13:04 +0000 (18:13 +0000)]
proxy_ftp and proxy_http both compile now.  Not tested because the rest of
the proxy is still not compiling, but we are making progress.

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

23 years agoMake proxy_connect.c compile cleanly again. Not sure if it works or not,
Ryan Bloom [Sat, 11 Nov 2000 17:51:58 +0000 (17:51 +0000)]
Make proxy_connect.c compile cleanly again.  Not sure if it works or not,
but it does compile.

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

23 years agoPick up buff.h for the moment, now to get the conn_rec changes from the last
Chuck Murcko [Sat, 11 Nov 2000 11:54:10 +0000 (11:54 +0000)]
Pick up buff.h for the moment, now to get the conn_rec changes from the last
few days taken care of.

PR:
Obtained from: Chuck Murcko
Submitted by:
Reviewed by:

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

23 years agoFix small thinko in void funcs
Chuck Murcko [Sat, 11 Nov 2000 11:12:22 +0000 (11:12 +0000)]
Fix small thinko in void funcs
PR:
Obtained from: Chuck Murcko
Submitted by:
Reviewed by:

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

23 years agoThis is the 1.3.x current proxy into 2.0 - first stage
Chuck Murcko [Sat, 11 Nov 2000 11:07:03 +0000 (11:07 +0000)]
This is the 1.3.x current proxy into 2.0 - first stage
PR:
Obtained from: Sam Magnuson
Submitted by:  Chuck Murcko
Reviewed by:

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

23 years agoThis is the 1.3.x current proxy into 2.0 - first stage
Chuck Murcko [Sat, 11 Nov 2000 11:05:18 +0000 (11:05 +0000)]
This is the 1.3.x current proxy into 2.0 - first stage
PR:
Obtained from:
Submitted by:
Reviewed by:

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

23 years agoThis is the 1.3.x current proxy code into 2.0.
Chuck Murcko [Sat, 11 Nov 2000 11:03:42 +0000 (11:03 +0000)]
This is the 1.3.x current proxy code into 2.0.
PR:
Obtained from: Sam Magnuson
Submitted by: Chuck Murcko
Reviewed by:

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

23 years agoThis is 1.3.x current proxy folded into 2.0.
Chuck Murcko [Sat, 11 Nov 2000 11:02:47 +0000 (11:02 +0000)]
This is 1.3.x current proxy folded into 2.0.
PR:
Obtained from: Sam Magnuson
Submitted by: Chuck Murcko
Reviewed by:

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

23 years agoNot all platforms have INADDR_NONE defined by default. Apache used to
Ryan Bloom [Sat, 11 Nov 2000 06:06:00 +0000 (06:06 +0000)]
Not all platforms have INADDR_NONE defined by default.  Apache used to
check for this and the define it if needed.  Since APR also needs this
check it makes more sense for APR to just check and export a symobl that
is always available.
Submitted by: Branko �ibej <brane@xbc.nu>
Reviewed by: Ryan Bloom

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

23 years ago A good thing, allow W2K to perform the symlink test.
William A. Rowe Jr [Sat, 11 Nov 2000 01:20:03 +0000 (01:20 +0000)]
  A good thing, allow W2K to perform the symlink test.

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

23 years agoGet mod_userdir compiling on FreeBSD when APR_HAS_THREADS.
Jeff Trawick [Fri, 10 Nov 2000 23:52:18 +0000 (23:52 +0000)]
Get mod_userdir compiling on FreeBSD when APR_HAS_THREADS.
This doesn't account for the fact that getpwnam() isn't
thread-safe on FreeBSD; it also doesn't account for systems
where getpwnam_r lives outside of libc.

See thread with subject "[?PATCH?] using getpwnam_r in mod_userdir"
in Nov. 2000 new-httpd for some better long-term ideas for how to
handle the problem.

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

23 years agoMM has a bug that when you ask for a specific amount of shared memory
Ryan Bloom [Fri, 10 Nov 2000 21:51:10 +0000 (21:51 +0000)]
MM has a bug that when you ask for a specific amount of shared memory
it allocates just that amount.  But, MM actually uses some of it, so we
need to over allocate just a bit.  On 32 bit machines 40 bytes is enough,
but on a 64 bit machine it isn't.  So, we bump it up to 80 bytes until
MM fixes this bug.
Submitted by: David Hill <David.D.Hill@compaq.com>

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

23 years agoFix a lot of the fallback from the apr_ssize_t to apr_size_t change
Ryan Bloom [Fri, 10 Nov 2000 19:01:33 +0000 (19:01 +0000)]
Fix a lot of the fallback from the apr_ssize_t to apr_size_t change
Submitted by: Victor J. Orlikowski <v.j.orlikowski@gte.net>

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

23 years agoremove a thread un-safe function from mod_rewrite
Ryan Bloom [Fri, 10 Nov 2000 18:42:40 +0000 (18:42 +0000)]
remove a thread un-safe function from mod_rewrite

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

23 years agoRemove the comments that I accidentally left in from testing. Doh!
Ryan Bloom [Fri, 10 Nov 2000 18:18:57 +0000 (18:18 +0000)]
Remove the comments that I accidentally left in from testing.  Doh!

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

23 years agoRemove a thread un-safe function when APR_HAS_THREADS
Ryan Bloom [Fri, 10 Nov 2000 18:16:52 +0000 (18:16 +0000)]
Remove a thread un-safe function when APR_HAS_THREADS

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

23 years agoDon't use ap_bucket_read() to find the length unless e->length is
Jeff Trawick [Fri, 10 Nov 2000 18:04:44 +0000 (18:04 +0000)]
Don't use ap_bucket_read() to find the length unless e->length is
-1.  Otherwise, we'll never use apr_sendfile().

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

23 years agoMore local/remote changes and tidy up http_vhost a bit.
David Reid [Fri, 10 Nov 2000 16:11:14 +0000 (16:11 +0000)]
More local/remote changes and tidy up http_vhost a bit.

Also add a new function to get an ap_ina_addr_t from a socket.

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

23 years ago Fix symbol break.
William A. Rowe Jr [Fri, 10 Nov 2000 15:33:31 +0000 (15:33 +0000)]
  Fix symbol break.

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

23 years ago Killing ap_os_is_filename_valid. Left actual win32 code, since it is
William A. Rowe Jr [Fri, 10 Nov 2000 15:29:07 +0000 (15:29 +0000)]
  Killing ap_os_is_filename_valid.  Left actual win32 code, since it is
  moving into apr and the check_safe_file call.

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

23 years agoThis is always displayed to the console. There is no reason to print the
Ryan Bloom [Fri, 10 Nov 2000 14:55:27 +0000 (14:55 +0000)]
This is always displayed to the console. There is no reason to print the
date and time to the console, so we should use APLOG_STARTUP to suppress
them

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

23 years ago Just some things I noticed letting someone else have some desktop time.
William A. Rowe Jr [Fri, 10 Nov 2000 04:24:16 +0000 (04:24 +0000)]
  Just some things I noticed letting someone else have some desktop time.
  Guess homework isn't a bad sacrifice, actually read some docs :-)
  Correct me if I'm wrong on the mod_auth_digest changes.

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

23 years agoI have fixed PR#4455 already.
Tony Finch [Fri, 10 Nov 2000 01:35:38 +0000 (01:35 +0000)]
I have fixed PR#4455 already.

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

23 years agoIn mass hosting setups (using mod_vhost_alias or mod_rewrite) where
Tony Finch [Fri, 10 Nov 2000 01:34:46 +0000 (01:34 +0000)]
In mass hosting setups (using mod_vhost_alias or mod_rewrite) where
the hostname is interpolated into the filename, we need to be sure
that the result of interpolation doesn't expose parts of the
filesystem that should be private. This was done by checking the
syntax of the Host: header according to RFC 1123 and RFC 952. However,
many people have broken configurations that violate this syntax
(frequently because they use underscores in their names), and it also
doesn't accommodate the current effort to internationalize the DNS. I
don't think the former is a compelling reason to relax the syntax
checking, but the latter does justify this change.

The only RFC on internationalized DNS at the moment is RFC 2825 which
is an introduction to how difficult the whole thing is; the other
official documentation is a pile of Internet Drafts produced by the
Internationalized Domain Names Working Group of the IETF (with names
starting "draft-ietf-idn-"). However they have very little to say
about URIs, and the current Internet draft about internationalized
URIs (draft-masinter-url-i18n-05) has very little to say about
hostnames :-( On the gripping hand there is some useful information at
<http://www.apng.org/idns/> where there is some iDNS testbed work
going on. The basic idea is that although the format of the hostnames
in the DNS itself remains compatible with RFC 1123, the actual
hostname presented to the resolver is in UTF8, and therefore the
hostname in the URL and Host: header is also in UTF8.

This change relaxes the checking so that only character sequences that
are sensitive to the filesystem are rejected, i.e. forward slashes,
backward slashes, and sequences of more than one dot.

PR: 6635

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

23 years ago Newer canonicalization code should replace this patch entirely, however
William A. Rowe Jr [Fri, 10 Nov 2000 01:12:10 +0000 (01:12 +0000)]
  Newer canonicalization code should replace this patch entirely, however
  it's nice to have a working server as a starting point :-)

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

23 years agoBring the apr_in_addr type into line with naming conventions and make changes
David Reid [Fri, 10 Nov 2000 00:58:25 +0000 (00:58 +0000)]
Bring the apr_in_addr type into line with naming conventions and make changes
where appropriate.  At least on my system virtual hosts seem to still work :)

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

23 years agoRemove MMAP handling from the default handler. MMAPs are created by the
Ryan Bloom [Thu, 9 Nov 2000 22:05:40 +0000 (22:05 +0000)]
Remove MMAP handling from the default handler.  MMAPs are created by the
file_bucket read function now.  If we try to read from a file bucket and
it makes sense to convert that bucket to an MMAP, that just happens.

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

23 years ago Per new-httpd discussions, this version of mod_autoindex has been set
William A. Rowe Jr [Thu, 9 Nov 2000 21:32:49 +0000 (21:32 +0000)]
  Per new-httpd discussions, this version of mod_autoindex has been set
  aside as a test for rputs style backwards compatibility.  It has really
  horrid chunking charateristics, so it was the ideal nominee for the job.

  Please refer to src/modules/standard/mod_autoindex.c for the complete
  revision history.  When rputs is entirely eliminated (if it ever is)
  then this version should be eliminated.

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

23 years agoClean up compiler warnings
Bill Stoddard [Thu, 9 Nov 2000 19:38:26 +0000 (19:38 +0000)]
Clean up compiler warnings

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

23 years agoEliminate use of BUFF in mpm_winnt. Thanks to rbb for pointing this out.
Bill Stoddard [Thu, 9 Nov 2000 19:17:51 +0000 (19:17 +0000)]
Eliminate use of BUFF in mpm_winnt. Thanks to rbb for pointing this out.

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

23 years agoChange the code to reflect the recent API changes...
David Reid [Thu, 9 Nov 2000 15:09:50 +0000 (15:09 +0000)]
Change the code to reflect the recent API changes...
Alter http_vhost.c to use the new apr_get_inaddr fucntion.  Old code is still
there just in case it breaks.  can someone check it who knows this stuff?

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

23 years ago Return buff.h to the winnt mpm till Bill (or I, if I must) remove the
William A. Rowe Jr [Thu, 9 Nov 2000 15:00:21 +0000 (15:00 +0000)]
  Return buff.h to the winnt mpm till Bill (or I, if I must) remove the
  acceptex style contexts into apr.

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

23 years agoSimplify the call to ap_send_fd().
Jeff Trawick [Thu, 9 Nov 2000 13:36:01 +0000 (13:36 +0000)]
Simplify the call to ap_send_fd().

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

23 years agofinal round of walker cleanup: fix the provider API to match what is Right.
Greg Stein [Thu, 9 Nov 2000 13:08:06 +0000 (13:08 +0000)]
final round of walker cleanup: fix the provider API to match what is Right.

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

23 years agoone more round of walker cleanup: remove some items that are internal to the
Greg Stein [Thu, 9 Nov 2000 12:48:17 +0000 (12:48 +0000)]
one more round of walker cleanup: remove some items that are internal to the
    FS provider from the public API; bang up the FS internals for the
    now-private items and mechanisms; a bit more revamp to the FS walker
    top-level APIs to narrow in on obsoleting dav_walker_ctx.

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

23 years agoshould be DAV_WALKTYPE_NORMAL, not _ALL
Greg Stein [Thu, 9 Nov 2000 11:56:26 +0000 (11:56 +0000)]
should be DAV_WALKTYPE_NORMAL, not _ALL

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

23 years agofirst round whack at cleaning up the walker interface
Greg Stein [Thu, 9 Nov 2000 11:23:39 +0000 (11:23 +0000)]
first round whack at cleaning up the walker interface

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

23 years agobyterange handling simply did not work for internal redirects.
Greg Stein [Thu, 9 Nov 2000 10:45:01 +0000 (10:45 +0000)]
byterange handling simply did not work for internal redirects.
  (e.g. fetch /foo/ which redirects to /foo/index.html)

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

23 years agominor tweaks, cleanup, comments.
Greg Stein [Thu, 9 Nov 2000 10:21:12 +0000 (10:21 +0000)]
minor tweaks, cleanup, comments.

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

23 years agoTie up some loose ends that fell through the cracks while I was fixing
Ryan Bloom [Thu, 9 Nov 2000 07:13:42 +0000 (07:13 +0000)]
Tie up some loose ends that fell through the cracks while I was fixing
things the first time.  The server compiles again after this change.

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

23 years agoUse the content-length filter to compute the content-length for byterange
Ryan Bloom [Thu, 9 Nov 2000 03:33:24 +0000 (03:33 +0000)]
Use the content-length filter to compute the content-length for byterange
requests.  This allows the byterange filter to work with the PDF plug-in.

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

23 years agoThe content-length filter needs to compute the length even if the
Ryan Bloom [Thu, 9 Nov 2000 03:00:00 +0000 (03:00 +0000)]
The content-length filter needs to compute the length even if the
content-length has already been set.  If we don't, then we won't know if
the content-length has changed because some other filter changed the
length of the actual data.  We also ALWAYS want to calculate the content
length if we get the whole brigade in the first call to this function.

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

23 years agoRemove BUFF from the main server. :-) The buff code needs to remain as
Ryan Bloom [Thu, 9 Nov 2000 00:37:06 +0000 (00:37 +0000)]
Remove BUFF from the main server.  :-)  The buff code needs to remain as
a part of the server until the proxy is purged of BUFF however.

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

23 years agoWhen caching file handles (vs. mmaps) reset the file pointer
Jeff Trawick [Wed, 8 Nov 2000 23:07:32 +0000 (23:07 +0000)]
When caching file handles (vs. mmaps) reset the file pointer
before serving, since a filter may have caused the file pointer
to advance.

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

23 years agoSlight clarification of chunked encoding and keep-alives. Thanks Tony.
Joshua Slive [Wed, 8 Nov 2000 22:37:29 +0000 (22:37 +0000)]
Slight clarification of chunked encoding and keep-alives.  Thanks Tony.

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

23 years agoIn the content-length+bytes-sent filter, only set the content length
Jeff Trawick [Wed, 8 Nov 2000 20:00:35 +0000 (20:00 +0000)]
In the content-length+bytes-sent filter, only set the content length
if we decided to do so initially *and* we've seen all the data.

Prior to this change, for a http/1.1 request to mod_autoindex, the
unconditional call to ap_set_content_length() gave us the wrong
value (only taking into account the first brigade) and disabled
chunking.

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

23 years agoRemove the byterange code out of mod_file_cache's handler. That
Jeff Trawick [Wed, 8 Nov 2000 19:07:34 +0000 (19:07 +0000)]
Remove the byterange code out of mod_file_cache's handler.  That
is completely in the core now.

Note that file handle caching is broken (nothing to do with
byte ranges).  mmap caches seem to work o.k.

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

23 years agoGet ab to build again by changing apr_set_remote_port() to apr_set_port().
Jeff Trawick [Wed, 8 Nov 2000 18:41:45 +0000 (18:41 +0000)]
Get ab to build again by changing apr_set_remote_port() to apr_set_port().

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

23 years agoFix the format strings used for apr_port_t (APR_PORT_T_FMT anyone?).
Jeff Trawick [Wed, 8 Nov 2000 16:42:05 +0000 (16:42 +0000)]
Fix the format strings used for apr_port_t (APR_PORT_T_FMT anyone?).
The sscanf() call was actually broken.

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

23 years agoThis adds the APR_LOCAL/APR_REMOTE to APR and changes the apr_get/set_port
David Reid [Wed, 8 Nov 2000 14:47:33 +0000 (14:47 +0000)]
This adds the APR_LOCAL/APR_REMOTE to APR and changes the apr_get/set_port
functions to use it.  This is onyl the start and I'll pause a while before
I continue in case people really hate this.  The patch can be backed out and
all evidence will be removed, but I think this makes maintaining/developing
the code easier in the long term.

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

23 years agoMore cleanup of apr_port_t stuff.
David Reid [Wed, 8 Nov 2000 12:07:27 +0000 (12:07 +0000)]
More cleanup of apr_port_t stuff.

This file will need a lot of work as it's using a lot of "raw" information
from socket structures that won't work with IPv6.  Needs to be abstracted out
and use APR instead.

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

23 years agoDoh! Missed this from the last commit...
David Reid [Wed, 8 Nov 2000 11:48:09 +0000 (11:48 +0000)]
Doh!  Missed this from the last commit...

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

23 years agoMissed these first time round... More apr_port_t changes.
David Reid [Wed, 8 Nov 2000 11:42:21 +0000 (11:42 +0000)]
Missed these first time round...  More apr_port_t changes.

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

23 years agoStart of moving to apr_port_t in the server code. This will probably the first
David Reid [Wed, 8 Nov 2000 11:35:38 +0000 (11:35 +0000)]
Start of moving to apr_port_t in the server code.  This will probably the first
of a few...

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

23 years agofix the byterange filter.
Greg Stein [Wed, 8 Nov 2000 11:22:07 +0000 (11:22 +0000)]
fix the byterange filter.

there is still some bogosity in there (huge buffer allocs!), and some
optimizations to be made, but this appears to fix byterange handling.

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

23 years agoThe byte-ranges filter. This looks like it should work, but the
Ryan Bloom [Wed, 8 Nov 2000 06:24:47 +0000 (06:24 +0000)]
The byte-ranges filter.  This looks like it should work, but the
Acrobat plug-in doesn't like it for some reason.  This does work better
than what we currently have, because at least it returns all of the
requested data.  This basically removes all BUFFs from the byte-range
code and removes all of the byte-range code from the default-handler.

Byte-ranges are now handled by a filter, which makes sense, and it allows
us to handle byte-ranges for all requests, not just files.

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

23 years agoap_set_content_length() now has a void return.
Greg Stein [Wed, 8 Nov 2000 03:12:58 +0000 (03:12 +0000)]
ap_set_content_length() now has a void return.

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

23 years agoFix a compile break. ap_set_content_length is a void function now, so we
Ryan Bloom [Wed, 8 Nov 2000 02:46:00 +0000 (02:46 +0000)]
Fix a compile break.  ap_set_content_length is a void function now, so we
can't check the return code.

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

23 years agoMake the keep-alive documentation more accurate.
Joshua Slive [Wed, 8 Nov 2000 01:15:49 +0000 (01:15 +0000)]
Make the keep-alive documentation more accurate.

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

23 years agoUse apr_off_t for the content length, rather than long. Propagate through
Greg Stein [Tue, 7 Nov 2000 22:41:09 +0000 (22:41 +0000)]
Use apr_off_t for the content length, rather than long. Propagate through
the byterange handling and ap_set_content_length().

[ ap_each_byterange() remains as an apr_size_t* so we don't mess up callers ]

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

23 years agoAvoid warning about unused function open_file() on systems
Jeff Trawick [Tue, 7 Nov 2000 22:12:36 +0000 (22:12 +0000)]
Avoid warning about unused function open_file() on systems
with no sendfile().

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

23 years agoConvert a lot of apr_ssize_t to apr_size_t. We don't ever accept or return
Ryan Bloom [Tue, 7 Nov 2000 20:21:55 +0000 (20:21 +0000)]
Convert a lot of apr_ssize_t to apr_size_t.  We don't ever accept or return
signed values in these integers, and we return the error codes directly,
so we should always report the number of bytes read/written correctly.  If
we have an error, that is 0 bytes.  If that is true, then using signed
values doesn't make any sense.

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

23 years agoRemove the original ap_send_fd code. The filters have been working for a
Ryan Bloom [Tue, 7 Nov 2000 18:09:47 +0000 (18:09 +0000)]
Remove the original ap_send_fd code.  The filters have been working for a
while, and this is cluttering up the code.  If it is really needed, it
can be found in CVS

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

23 years agoFix typo
Martin Kraemer [Tue, 7 Nov 2000 16:54:27 +0000 (16:54 +0000)]
Fix typo

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

23 years agoGet rid of unused variable zero in ap_send_http_options().
Jeff Trawick [Tue, 7 Nov 2000 12:18:45 +0000 (12:18 +0000)]
Get rid of unused variable zero in ap_send_http_options().

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

23 years agoThe LoadModule line should specify a .so file, not a .la file
Greg Stein [Tue, 7 Nov 2000 04:10:59 +0000 (04:10 +0000)]
The LoadModule line should specify a .so file, not a .la file

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

23 years agoAlways compute the content-length regardless of whether it is sent to the
Ryan Bloom [Tue, 7 Nov 2000 00:58:49 +0000 (00:58 +0000)]
Always compute the content-length regardless of whether it is sent to the
client or not.  The reason for this, is that it allows us to log the
bytes sent to the client correctly.  This also simplifies the
content-length filter a bit, by making it a single pass through the
brigade.

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

23 years agoRemvoe AP_END_OF_BRIGADE. This definition didn't really mean anything,
Ryan Bloom [Tue, 7 Nov 2000 00:33:48 +0000 (00:33 +0000)]
Remvoe AP_END_OF_BRIGADE.  This definition didn't really mean anything,
because it didn't signify the end of the brigade, and it didn't signify
the end of a response.  It ended up meaning flush the data, which can be
detemined with bucket type checks.  This also makes the FLUSH and EOS
buckets have a 0 length, which makes a lot of code cleaner, because now we
can just add lengths and be sure they are all >=0.

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

23 years agoGrammar/Style fixes.
Joshua Slive [Mon, 6 Nov 2000 22:47:06 +0000 (22:47 +0000)]
Grammar/Style fixes.

Submitted by: Chris Pepper <pepper@mail.reppep.com>

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