Ryan Bloom [Thu, 16 Dec 1999 19:58:00 +0000 (19:58 +0000)]
After a few hours of thorough testing, this patch makes CGI's through SSI's
work properly on Linux. We will be testing this change on Win32 momentarily,
but because we are relying on APR for the dirty work, I have no fears. :-)
Ryan Bloom [Thu, 16 Dec 1999 15:41:28 +0000 (15:41 +0000)]
Fix mod_include so it works. Both people came up with very similar patches at
about the same time. Since the work was duplicated, I am putting both names
on the patch.
Submitted by: Allan Edwards and Paul Reder
Reviewed by: Ryan Bloom
Martin Kraemer [Wed, 15 Dec 1999 23:04:19 +0000 (23:04 +0000)]
Peter Watkins writes:
In September, there was discussion of mod_log_config and some need to
break the client request "%r" into its separate components. A patch was
committed to the 1.3 dev tree that exposed the method and protocol
request members as "%m" and "%H". It was noted that "%m %U %H" was not
the same as "%r" because %U does not include query string information.
The attached patches add support for logging query string in such a way
that "%m %U%q %H" is the same as "%r". I would like to see this committed
to take care of the unfinished business begun with "%m" and "%H".
Thanks,
-Peter
PR: 5174
Submitted by: Peter Watkins <peterw@usa.net>
Reviewed by: Martin Kraemer
Ryan Bloom [Wed, 15 Dec 1999 19:32:23 +0000 (19:32 +0000)]
Remove the readdir files from os/win32. These are taken care of by APR now,
and they have been bothering me. This is my first attempt at generating a
Makefile for Windows, but it seems to have worked for me.
Ryan Bloom [Wed, 15 Dec 1999 00:59:56 +0000 (00:59 +0000)]
Cleanup the Windows build a bit by getting rid of more platform dependant
code. Still won't compile cleanly, but we are closer. I am hoping for a
clean Windows compile by Friday.
Ryan Bloom [Tue, 14 Dec 1999 20:37:58 +0000 (20:37 +0000)]
Make CGI's work correctly in Apache 2.0. APR wants the first element in the
argument list to be the program name. This is exactly what POSIX requires,
and what Windows wants, but Apache 1.3 would create the arg list, and then
have another function squeeze the program name in later. This patch fixes
that by having mod_cgi put the program name the correct place.
Ryan Bloom [Mon, 13 Dec 1999 22:53:25 +0000 (22:53 +0000)]
Fix some warnings when configured with --enable-maintainer-mode.
ap_start_(shutdown|restart) are no longer static in dexter, because we
explicitly state we are creating them to be called from places other than
the parent. This is the first in a series of patches to get the 2.0 code
to compile cleanly again.
Ryan Bloom [Fri, 10 Dec 1999 20:22:07 +0000 (20:22 +0000)]
We now make the decision to USE_MMAP_FILES based on whether or not APR
has MMAP. If APR_HAS_MMAP is true then USE_MMAP_FILES is true. We also
no longer check for MMAP in autoconf within Apache. Apache relies on APR
to give us MMAP functionality, and therefore doesn't need to check for
itself.
Bill Stoddard [Fri, 10 Dec 1999 16:10:42 +0000 (16:10 +0000)]
AIX DSO tweaks. Enable use of native DSO for AIX 4.3 and beyond. Apache DSO
emulation breaks with 64-bit compiles of Apache and AIX DSO support is broken
in releases prior to 4.3.
Ryan Bloom [Sun, 5 Dec 1999 19:36:42 +0000 (19:36 +0000)]
I shouldn't have to explicitly provide an MPM. I am setting the default
as mpmt_pthread. I would much rather it was prefork, but the autoconf
work hasn't progressed to the point that prefork will work yet. When it
does work, I expect the default to change.
autoconf: Generate modules.c based on configuration. This is the first
step to supporting selection of modules, and it seems to make --with-mpm
actually work now.
Disable the DYLD_CANT_UNLOAD workaround for Mac OS X Server, since the
current version (and the patched older version) doesn't need this any
more. We don't want to delete the code from unix/os.c, however,
because OpenStep's dyld needs it.
Ryan Bloom [Thu, 2 Dec 1999 18:36:39 +0000 (18:36 +0000)]
We may not always want to make the pipes between processes non-blocking.
This patch allows us to set if both sides of the pipes are nonblocking,
both sides are blocking, just the parent side blocks, or just the child
side blocks for all three of the pipes created during create_process. I
have also modified Apache to take advantage of this change.
Ken Coar [Wed, 1 Dec 1999 22:10:32 +0000 (22:10 +0000)]
Add the long-awaited IndexOptions DescriptionWidth keyword.
It was waiting for a way to avoid breaking HTML tags, but
that's already been done as much as possible -- we can't
do anything about breaking HTML elements without putting
a full parser in.
Eliminate ap_config.h's checks when using autoconf. Now, ap_ac_config.h
is used instead, and autoconf's configure script will check for
everything else.
Ryan Bloom [Tue, 23 Nov 1999 13:47:01 +0000 (13:47 +0000)]
Update some dependancies. Move the final two files out of apr/inc and into
apr/include. Basically just finish some cleanup from some changes I've
been making over the last two days.
Hmmm, turns out that the nice event library for network events on PalmOS
only applies to the wireless transceiver. Oh well, I guess select() will
have to do...
Ryan Bloom [Mon, 22 Nov 1999 14:52:17 +0000 (14:52 +0000)]
Clean up the getopt stuff a bit. Basically, I am removing the #define's,
and changing the names in the getopt.c file so that we are sure there is
no namespace collision between regular getopt's, and APR's getopt.
Ryan Bloom [Fri, 19 Nov 1999 20:27:32 +0000 (20:27 +0000)]
Remove the ap_thread_mutex code from all MPM's. This code isn't actually
being called anywhere, and I have compiled dexter, mpmt_pthread, and
prefork without it. Away it goes.
Ryan Bloom [Thu, 18 Nov 1999 23:07:53 +0000 (23:07 +0000)]
First step in removing the fprintf(stderr problem from Apache. Basically,
I defined APLOG_STARTUP, which refrains from printing the date string
and the log level information in log_error_core. I then changed all the
fprintf(stderr calls to ap_log_error, and used APLOG_STARTUP.
log_error_core on Unix takes care of creating a log file and directing
it to stderr if a log file isn't already active. I will continue to
make these changes tomorrow. Currently, the main code and the dexter
mpm have been modified.
Ryan Bloom [Wed, 17 Nov 1999 21:39:42 +0000 (21:39 +0000)]
Cleaned up the APRFile uses in Apache. Also removed the apr.h header file
because it is no longer used. Finally, I updated the dependancies to
compile cleanly.
Ryan Bloom [Tue, 16 Nov 1999 18:32:05 +0000 (18:32 +0000)]
Cleanup the ZZZ comments. Basically these used to mark places where APR
is needed. It is much easier to do this conversion by hand than by
searching for old comments, so they are going away now.
Ryan Bloom [Mon, 15 Nov 1999 19:50:25 +0000 (19:50 +0000)]
Moving Unix socket IOL's to use APR. Also fixed a small bug in ap_recv.
We should NEVER return a status of APR_EAGAIN and say -1 bytes read. This
can cause some strange bugs.
Fix a race condition found by David Colasurdo <davecola@us.ibm.com>. We
should make sure that the parent notes the creation of a child process
in the scoreboard so that perform_idle_server_maintanence doesn't get
the chance to claim that slot.
Bill Stoddard [Tue, 9 Nov 1999 03:41:11 +0000 (03:41 +0000)]
mod_autoindex has a small bug when calling ap_readdir. This was
causing empty indexes to be created. The following patch fixes
this problem
Submitted by: Paul Reder
Reviewed by: Bill Stoddard
Stop using APR_BUFFERED for the error log and httpd.pid file. The error
logging code has been tweaked a bit so that we still have one write per
log entry.