1
0
mirror of https://github.com/apache/httpd.git synced 2026-01-26 19:01:35 +03:00
Commit Graph

126 Commits

Author SHA1 Message Date
William A. Rowe Jr
40655f8641 Provide apr_pool_t arg to register_hooks, since anything they do in that
step -must- be done with a pool that will not outlive the cmd pool, from
  which they may have been dynamically loaded.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87697 13f79535-47bb-0310-9956-ffa450edef68
2001-01-17 15:52:12 +00:00
Jeff Trawick
fe3320ada9 use the apr_status_t instead of errno
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87629 13f79535-47bb-0310-9956-ffa450edef68
2001-01-09 05:03:42 +00:00
Doug MacEachern
40391fb9f2 adjust remaining modules to use the new handler hook method (Alan Edwards)
bring back the old handler prototype by reusing r->handler (dougm)
PR:
Obtained from:
Submitted by:
Reviewed by:


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87617 13f79535-47bb-0310-9956-ffa450edef68
2001-01-08 23:55:12 +00:00
Ben Laurie
45f620672d Make handlers use hooks.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87604 13f79535-47bb-0310-9956-ffa450edef68
2001-01-07 19:55:59 +00:00
Ryan Bloom
b9d06deea4 Allow the auth modules to load into the server.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87510 13f79535-47bb-0310-9956-ffa450edef68
2000-12-22 21:34:09 +00:00
William A. Rowe Jr
8a5e3208d9 Last of the Win32 goodness I've noticed
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87503 13f79535-47bb-0310-9956-ffa450edef68
2000-12-21 21:07:18 +00:00
William A. Rowe Jr
c876e8476a Out of the sandbox and into prime time. Note... these should always and
only be regenerated immediately prior to the tag and roll.  Do not assume
  they are current with the sources in the development tree.  They should
  be generated as vc5 make files, since only vc5 makefiles are readable by
  both vc5 and vc6.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87479 13f79535-47bb-0310-9956-ffa450edef68
2000-12-21 01:46:22 +00:00
William A. Rowe Jr
0a37cdf9fe Correction, commited the vc5. Need vc6 in the tree. Humble appologies.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87475 13f79535-47bb-0310-9956-ffa450edef68
2000-12-21 01:25:10 +00:00
William A. Rowe Jr
4315b0c706 The Win32 overhaul, in summary;
Modules are named mod_foo.so
    Dynamic Libraries are named libfoo.dll, and are stored in bin/
    The former ApacheCoreDll is now libhttpd.dll
    Apache.exe moves to bin/
    The make install now copies include, lib, and libexec
    All build options are normalized, filenames adjusted appropriately


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87471 13f79535-47bb-0310-9956-ffa450edef68
2000-12-21 01:04:49 +00:00
Ryan Bloom
b2c9db9fbb Remove a warning on some platforms.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87426 13f79535-47bb-0310-9956-ffa450edef68
2000-12-19 19:44:16 +00:00
Ryan Bloom
772355e125 Get all of the auth modules to the point that they will install and
be loadable into the server.  Our new build/install mechanism expects
that all modules will have a common name format.  The auth modules
didn't use that format, so we didn't install them properly.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87422 13f79535-47bb-0310-9956-ffa450edef68
2000-12-19 15:09:02 +00:00
Jeff Trawick
b1e8b050e9 The local_addr and remote_addr fields in the conn_rec are now
apr_sockaddr_t * instead of sockaddr_in.  This is a small step
towards IPv6 support.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87342 13f79535-47bb-0310-9956-ffa450edef68
2000-12-14 18:47:30 +00:00
William A. Rowe Jr
4e842d60f1 The feature macro may appear a bit odd. I'm open to any better suggest.
Define AP_AUTH_DBM_USE_APR for apr dbm access, and apply the symbol to
  the win32 build.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87265 13f79535-47bb-0310-9956-ffa450edef68
2000-12-08 18:27:53 +00:00
Greg Stein
9787943f19 *) remove STANDARD_LIBS line; it is unused/unneeded
*) simplify by removing the extra AC_DEFUN() in each file


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87247 13f79535-47bb-0310-9956-ffa450edef68
2000-12-07 10:40:01 +00:00
William A. Rowe Jr
bf57cf0335 The -big- fix, all the proper linkages for BaseAddr.ref plus a bit.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87221 13f79535-47bb-0310-9956-ffa450edef68
2000-12-05 20:36:03 +00:00
William A. Rowe Jr
56560e4293 A bit of inclusion for the apr-util package.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87213 13f79535-47bb-0310-9956-ffa450edef68
2000-12-05 17:38:40 +00:00
William A. Rowe Jr
f119cafbaa This patch illustrates the new locations, and makes the majority of the
adjustments.  Now to actually try to build the thing.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87212 13f79535-47bb-0310-9956-ffa450edef68
2000-12-05 16:37:50 +00:00
Ryan Bloom
d412995055 Get the modules configuration stuff working correctly. This just deals
with STANDARD modules and Protocol, not MPMs.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87186 13f79535-47bb-0310-9956-ffa450edef68
2000-12-04 21:38:51 +00:00
Ryan Bloom
a87a761b37 Start to add back the config.m4 and Makefile.in's that were separated out
during the repository move.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87184 13f79535-47bb-0310-9956-ffa450edef68
2000-12-04 20:34:48 +00:00
Ryan Bloom
b62a882802 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
2000-11-14 01:55:26 +00:00
Jeff Trawick
960d7c012f 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
2000-11-13 03:18:18 +00:00
Ryan Bloom
c1c3267c14 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
2000-11-11 06:06:00 +00:00
Jeff Trawick
b8e4c889b3 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
2000-11-10 23:52:18 +00:00
Ryan Bloom
5403b81ddb Cleanup some warnings in mod_auth_digest.c
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86774 13f79535-47bb-0310-9956-ffa450edef68
2000-10-31 01:02:33 +00:00
Ryan Bloom
1576740796 Mod_auth_db.c compiles cleanly now.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86773 13f79535-47bb-0310-9956-ffa450edef68
2000-10-31 00:53:34 +00:00
Ryan Bloom
8e02713b49 Make mod_auth_dbm compile cleanly.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86769 13f79535-47bb-0310-9956-ffa450edef68
2000-10-30 20:45:38 +00:00
Ryan Bloom
7d9a83ff92 Make mod_auth_db compile cleanly in 2.0
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86768 13f79535-47bb-0310-9956-ffa450edef68
2000-10-30 20:13:04 +00:00
Ryan Bloom
11c6868925 Get mod_auth_anon to compile cleanly in 2.0
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86767 13f79535-47bb-0310-9956-ffa450edef68
2000-10-30 19:52:09 +00:00
Manoj Kasichainula
98516e9372 Don't build mod_suexec by default. It breaks other platforms, and
since suexec isn't built by default anyway, it makes sense to treat
mod_suexec similarly.

Submitted by:	Greg Stein


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86730 13f79535-47bb-0310-9956-ffa450edef68
2000-10-24 11:45:41 +00:00
Manoj Kasichainula
b1fb90877e Add back suexec support.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86712 13f79535-47bb-0310-9956-ffa450edef68
2000-10-23 15:30:57 +00:00
William A. Rowe Jr
d6490633eb Renamed all MODULE_EXPORT symbols to AP_MODULE_DECLARE and all symbols
for CORE_EXPORT to AP_CORE_DECLARE (namespace protecting the wrapper)
  and retitled API_EXPORT as AP_DECLARE and APR_EXPORT as APR_DECLARE.
  All _VAR_ flavors changes to _DATA to be absolutely clear.
  Thank you Greg, for the most obvious suggestion.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86609 13f79535-47bb-0310-9956-ffa450edef68
2000-10-16 06:05:15 +00:00
William A. Rowe Jr
eaba82f661 Regardless of reaction to a symbol rename -within- the sources, these
external symbols change for clarity.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86540 13f79535-47bb-0310-9956-ffa450edef68
2000-10-11 17:20:12 +00:00
William A. Rowe Jr
7c0e6988cf MSVC Project Rename - ApacheModuleBleck.* is no longer... now mod_bleck.*
Reviewed by: rbb, stoddard


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86535 13f79535-47bb-0310-9956-ffa450edef68
2000-10-11 13:53:03 +00:00
Greg Stein
75f2baa793 echo should not be built by default
(maybe this module should be moved to modules/example/)


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86500 13f79535-47bb-0310-9956-ffa450edef68
2000-10-10 10:16:15 +00:00
William A. Rowe Jr
e92c25e13f Kind of hard to load without an exported module structure.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86448 13f79535-47bb-0310-9956-ffa450edef68
2000-10-08 06:01:39 +00:00
Ryan Bloom
ad880b39f9 Prepare our autoconf setup for autoconf 2.14a and for cross-compiling
PR:	6379
Submitted by:	"R�diger" Kuhlmann <Tadu@gmx.de>
Reviewed by:	Ryan Bloom


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86398 13f79535-47bb-0310-9956-ffa450edef68
2000-10-05 04:41:47 +00:00
William A. Rowe Jr
e986dbe9fb Transposed return values between conditions, oops.
PR:
Obtained from:
Submitted by:
Reviewed by:


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86258 13f79535-47bb-0310-9956-ffa450edef68
2000-09-20 05:01:55 +00:00
William A. Rowe Jr
0e60f79d1c Get mod_auth_dbm building using Apache's sdbmlib under WinNT.
Bad conditional... need a better test to determine if we are using sdbm.

  Also - consistify linkage for expat-lite/sdmb to the same model as all
  the modules (no more nasty "conflicting linkage, use /nodefaultlib" msg.)

PR:
Obtained from:
Submitted by:
Reviewed by:


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86257 13f79535-47bb-0310-9956-ffa450edef68
2000-09-20 04:54:06 +00:00
William A. Rowe Jr
1a9db204f5 Remaining cleanup of ap_ -> apr_ and AP_ -> APR_ transformation...
see src/lib/apr/apr_compat.h for most details.
  Also a few minor nits to get Win32 to build.

PR:
Obtained from:
Submitted by:
Reviewed by:


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86008 13f79535-47bb-0310-9956-ffa450edef68
2000-08-06 06:07:53 +00:00
Jeff Trawick
750ff5fd96 Disable the dbm_ usage in mod_rewrite so that it links.
Still to do: decide at config time whether any modules need dbm, whether
             to use the native one or sdbm, etc.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85982 13f79535-47bb-0310-9956-ffa450edef68
2000-08-04 02:25:08 +00:00
Doug MacEachern
059d8dd212 prefix libapr functions and types with apr_
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85976 13f79535-47bb-0310-9956-ffa450edef68
2000-08-02 05:27:38 +00:00
Ryan Bloom
28f6bfe4a2 Remove all of the ap_is* functions from Apache. They were already in APR,
and we all hate duplicate code.  :-)  This also required adding ap_isascii
to APR.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85897 13f79535-47bb-0310-9956-ffa450edef68
2000-07-26 15:31:30 +00:00
William A. Rowe Jr
fc3580dd3b Missing apr_strings.h - hope this wasn't destined for some global header.
PR:
Obtained from:
Submitted by:
Reviewed by:


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85877 13f79535-47bb-0310-9956-ffa450edef68
2000-07-25 00:58:22 +00:00
Ryan Bloom
22d9fbdec0 Move all APR functions related to strings to their own directory, and
create a new header for those functions.  This is the first step to
removing the apr/lib directory completely, and moving those files/functions
to descriptive directories.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85867 13f79535-47bb-0310-9956-ffa450edef68
2000-07-21 19:50:58 +00:00
Jeff Trawick
b5c0ae056b Include strings.h for strcasecmp(), strncasecmp(), and bzero().
Include time.h for time().

This removes a bunch of compiler warnings with gcc -Wall on AIX.
Submitted by:	Jeff Trawick, Victor Orlikowski


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85723 13f79535-47bb-0310-9956-ffa450edef68
2000-06-28 14:33:48 +00:00
Ryan Bloom
6d3fe9dea2 Fix the configure script. If a either the mpmt_pthread or dexter MPM's
are chosen, the default CGI module is mod_cgid.  If any other MPM is
chosen, mod_cgi is the default.  I would rather have the maintainers for
other platforms change their own defaults, than make mod_cgid the default
on all threaded MPM's.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85702 13f79535-47bb-0310-9956-ffa450edef68
2000-06-27 20:25:46 +00:00
Ryan Bloom
8da014bc12 Detect libraries based on which platform configure is being run on.
Basically, Apache now runs APR's configure script first.  APR's configure
script has been setup to create a new file, APRVARS.  APRVARS is basically
all of the environment variables that APR wants to export to the program
that is using it.  This allows the calling program to "source" APRVARS
and get those environment variables.

Removed hack to make platforms use -ldl.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85701 13f79535-47bb-0310-9956-ffa450edef68
2000-06-27 20:06:21 +00:00
Greg Stein
02a2200fd8 blast the old names for the status codes
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85686 13f79535-47bb-0310-9956-ffa450edef68
2000-06-24 17:34:11 +00:00
Jeff Trawick
8db6090ae2 Use the new command-handler initializer macros in mod_access;
clean up the resulting warnings.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85611 13f79535-47bb-0310-9956-ffa450edef68
2000-06-18 21:01:21 +00:00
Jeff Trawick
c58c39beeb Use the new command-handler initializer macros in mod_auth;
clean up the resulting warnings.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85609 13f79535-47bb-0310-9956-ffa450edef68
2000-06-18 13:33:29 +00:00