Ryan Bloom [Wed, 12 Jan 2000 18:20:43 +0000 (18:20 +0000)]
Fix some remaining problems with SSI's and Windows. Basically, the
sendfile stuff doesn't work properly with chuncked data.
Submitted by: Allan Edwards
Reviewed by: Ryan Bloom
Sascha Schumann [Tue, 11 Jan 2000 13:11:13 +0000 (13:11 +0000)]
These changes are committed together, because they depend on each other.
- shared modules can be built in the tree
- added support for --with-layout, uses APACI's config.layout
- working 'make install'
- working 'make depend'
- working Pthreads checks
- buildconf replaced
Added the mod_rewrite `URL Rewriting Guide' to the online documentation
(htdocs/manual/misc/rewriteguide.html). This paper provides a large
collection of practical solutions to URL based problems a webmaster is
often confronted with.
This version of the text was translated from my WML source on my website
and my old official version is now discarded. So, as it was requested,
this can be treated as an official donation of this text to the ASF.
This way the ASF is now the official owner of this text.
- - -
<IRONIC>
Be happy and give Ken and Jim the credit for achieving this by being
such sensitive and friendly to other developers like me and always
reminding us that it is such contemptuous to implicitly promote ones
name by writing free software and contributing to projects like Apache.
Sorry that I have forgotten to donate this piece of text to the ASF in
the past and instead added such a contemptible hyperlink directing to a
page on www.engelschall.com. I hope this is now fixed and the closed and
holy ASF world is rescued again.
</IRONIC>
<PERSONAL>
I think, I don't have to say that I'm more than angry and disappointed
how developers like me are constantly bashed in the ASF... we can go for
it also in the future, but we should stop looking astonished all the
time if we find out that too less people contribute to the ASF and old
developers like me no longer have a warm feeling here, please. It's our
own fault in thinking that contributions are for free and anonymous just
because our project is a group effort.
IMHO we already have forgotten the golden rule of Open Source
development: if one wants happy and long-term contributing developers
one especially has to make sure they receive the requested credit.
There is an upper limit a project can accept to give, of course. But
credit always has to depend on the amount, quality _and_ duration of
contribution and IMHO cannot be judged by stating that just all people
are equal and so some contributors can be bashed for the fact that their
name occurs more often.
It is correct that my name occurs more often caused by the fact that I
always try to bring in my stuff to the project. But keep in mind that
this is because I _HAVE_ stuff to bring in which I've created _OUTSIDE_
the project. So I think its unfair to bash me just because I try harder
to bring in my additional stuff. If a developer has not much externally
created stuff, he cannot bring it in to the project, of course. But just
because one has more externally created stuff and tries to bring it in,
is IMHO no reason and excuse to bash him for this. It's not my fault
that I write in my freetime more Open Source packages like most of you.
So if you dislike stuff developers want to bring in, decide on the
contribution based on fair technical arguments (pros and cons). But
don't judge the contributions all the time just because you think this
way you "promote" someone (be it RSE, GNU or whoever else). Hell, an
Open Source project is not a group of people to rule their own closed
world and be celebrated in the press for this. It's still an effort to
create the best piece of _software_ money can't buy. So you should stop
thinking about contributors as our enemy. They are the main driving
force of every project, although some people seem to not understand
this at all. And whatever you think about my personal opinion, but
IMHO it's not bad for a project if someone's name is "promoted" with
it, too. What is actually bad are those complains and discussions
which make developers angry and the fact that they result in even less
contributions.
</PERSONAL>
Ryan Bloom [Thu, 6 Jan 2000 19:19:39 +0000 (19:19 +0000)]
Next pass at the time functions. This defines an ap_ansi_time_t which has
a specific format (seconds since 0:00:00 Jan 1, 1970). I also renamed the
(get|set)_curtime functions to (get|set)ansitime. This should make more
sense, and be a bit more intuitive.
Ryan Bloom [Fri, 31 Dec 1999 20:32:36 +0000 (20:32 +0000)]
A few more tweaks to finish the modules work. Now, all of the modules
compile correctly with Apache 2.0. This does run, but it hasn't been tested
any more than simply compiling and running the server.
Ryan Bloom [Thu, 30 Dec 1999 18:31:29 +0000 (18:31 +0000)]
Some changes to the ap_strftime function. We now inform the user of the
length of the string written, and we return a status code. I expect the
status code to mean a bit more on Windows than it currently does on Unix.
Ryan Bloom [Fri, 24 Dec 1999 21:22:27 +0000 (21:22 +0000)]
Cleanup the threads check, also resets the CFLAGS and LDFLAGS variables
in cases where no threading library was found.
Submitted by: Sascha Schumann
Reviewed by: Ryan Bloom
- INADDR_NONE is not defined. Supply a replacement
- APACHE_MODULE() used a non-portable shell construct
- inet_addr() needs -lnsl -lsocket. Neccessary checks added
- For POSIX conformance, _POSIX_PTHREAD_SEMANTICS is
required. This fixes i.e. sigwait() problems.
Ryan Bloom [Fri, 24 Dec 1999 18:31:10 +0000 (18:31 +0000)]
Finish the MPM decision logic. This moves the threads checking stuff into
the mpm directory where it belongs. It also adds logic so that if threads
aren't detected, we automatically choose to use the prefork mpm. Lastly,
I also cleaned up a variable name to make it more consistent with the other
variables used in our configure script.
Ryan Bloom [Wed, 22 Dec 1999 21:24:45 +0000 (21:24 +0000)]
This fixes the bug in my last commit. Apache always caches a value for
enable-threads. This allows us to re-configure the server for different
MPM's without worrying about not having APR-threads available.
Ryan Bloom [Wed, 22 Dec 1999 20:29:20 +0000 (20:29 +0000)]
Clean up APR's configure script a bit. This commit also allows Apache to
specify that APR should be built without threads for the prefork MPM. This
is broken if we then try to configure Apache again using a threaded MPM, but
this is easily fixable, and I will be doing that soon. Lastly, I removed all
thread calls from APR when it is told to build without threads.
--include-deps only seems to take advantage of pregenerated
dependencies, and makes the build process refuse to generate them, so
this removes it. It should be used when making a distribution, though.
We don't need the capability to build an acconfig.h anymore; AC_DEFINE
provides everything we need for equivalent functionality. This change
deletes the intrastructure that built acconfig.h.in before.
Bill Stoddard [Mon, 20 Dec 1999 19:52:51 +0000 (19:52 +0000)]
Windows: Can now install/uninstall Apache as a service and start/stop apache via
net start and net stop commands. Not extensively tested, so there may be bugs
in this still.
Ryan Bloom [Mon, 20 Dec 1999 16:38:39 +0000 (16:38 +0000)]
First step in getting Apache to use APR's time libraries. This gets a good
number of them, but I think there are more time values still in the Apache
code. This works under Linux, but has not been tested anywhere else.
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.