cvs commit: apachen/src/main http_log.c
dgaudet 97/08/25 01:24:16 Modified:src/main http_log.c Log: not everything has LOG_FTP Revision ChangesPath 1.23 +2 -0 apachen/src/main/http_log.c Index: http_log.c === RCS file: /export/home/cvs/apachen/src/main/http_log.c,v retrieving revision 1.22 retrieving revision 1.23 diff -u -r1.22 -r1.23 --- http_log.c1997/08/25 02:00:40 1.22 +++ http_log.c1997/08/25 08:24:15 1.23 @@ -72,7 +72,9 @@ {authpriv,LOG_AUTHPRIV}, {cron, LOG_CRON}, {daemon, LOG_DAEMON}, +#ifdef LOG_FTP {ftp, LOG_FTP}, +#endif {kern, LOG_KERN}, {lpr, LOG_LPR}, {mail, LOG_MAIL},
cvs commit: apachen/src/main http_log.c
coar97/08/25 07:26:31 Modified:src/main http_log.c Log: #ifdef LOG_AUTHPRIV, since it isn't available on Digital UNIX 3.2. Revision ChangesPath 1.24 +2 -0 apachen/src/main/http_log.c Index: http_log.c === RCS file: /export/home/cvs/apachen/src/main/http_log.c,v retrieving revision 1.23 retrieving revision 1.24 diff -u -r1.23 -r1.24 --- http_log.c1997/08/25 08:24:15 1.23 +++ http_log.c1997/08/25 14:26:29 1.24 @@ -69,7 +69,9 @@ static TRANS facilities[] = { {auth, LOG_AUTH}, +#ifdef LOG_AUTHPRIV {authpriv,LOG_AUTHPRIV}, +#endif {cron, LOG_CRON}, {daemon, LOG_DAEMON}, #ifdef LOG_FTP
cvs commit: apachen/src/main http_log.c
randy 97/08/25 07:53:41 Modified:src/main http_log.c Log: Comment out syslog support temporarily until I can come up with a more portable option. Revision ChangesPath 1.25 +2 -0 apachen/src/main/http_log.c Index: http_log.c === RCS file: /export/home/cvs/apachen/src/main/http_log.c,v retrieving revision 1.24 retrieving revision 1.25 diff -u -r1.24 -r1.25 --- http_log.c1997/08/25 14:26:29 1.24 +++ http_log.c1997/08/25 14:53:39 1.25 @@ -248,12 +248,14 @@ vfprintf(r-server-error_log, fmt, args); fflush(r-server-error_log); } +#ifdef NOTYET else { if (errstr) syslog(level, %s, errstr); vsyslog(level, fmt, args); } +#endif va_end(args); }
cvs commit: apache-devsite mmn.txt
coar97/08/25 08:21:29 Modified:.mmn.txt Log: Update Ye Historie of Ye Module Magick Number to reflect the last few changes. Revision ChangesPath 1.3 +3 -0 apache-devsite/mmn.txt Index: mmn.txt === RCS file: /export/home/cvs/apache-devsite/mmn.txt,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- mmn.txt 1997/07/17 23:50:30 1.2 +++ mmn.txt 1997/08/25 15:21:27 1.3 @@ -12,3 +12,6 @@ 19970623 (1.3-dev) - NT changes 19970628 (1.3-dev) - ap_slack (fd fixes) added 19970717 (1.3-dev) - child_init API hook added +19970719 (1.3-dev) - discard_request_body() added (to clear the decks as needed) +19970728 (1.3a2-dev) - child_exit API hook added +19970818 (1.3a2-dev) - post read-request phase added
cvs commit: apachen/src/modules/standard mod_setenvif.c
coar97/08/25 08:39:21 Modified:src/modules/standard mod_setenvif.c Log: Revert the UnSetIfZero directive that was added when mod_setenvif was made a standard module. It isn't broad enough in scope; it only affects those envariables set with the SetEnvIf* directives. Reviewed by: Dean Gaudet Revision ChangesPath 1.8 +1 -17 apachen/src/modules/standard/mod_setenvif.c Index: mod_setenvif.c === RCS file: /export/home/cvs/apachen/src/modules/standard/mod_setenvif.c,v retrieving revision 1.7 retrieving revision 1.8 diff -u -r1.7 -r1.8 --- mod_setenvif.c1997/08/18 13:12:18 1.7 +++ mod_setenvif.c1997/08/25 15:39:20 1.8 @@ -123,7 +123,6 @@ typedef struct { array_header *conditionals; -int zero_means_unset; } sei_cfg_rec; module MODULE_VAR_EXPORT setenvif_module; @@ -133,7 +132,6 @@ sei_cfg_rec *new = (sei_cfg_rec *)palloc(p, sizeof(sei_cfg_rec)); new-conditionals = make_array(p, 20, sizeof(sei_entry)); -new-zero_means_unset = 0; return (void *)new; } @@ -145,7 +143,6 @@ a-conditionals = append_arrays(p, base-conditionals, overrides-conditionals); -a-zero_means_unset = overrides-zero_means_unset; return a; } @@ -259,9 +256,6 @@ RSRC_CONF, RAW_ARGS, A header-name, regex and a list of variables. }, { SetEnvIfNoCase, add_setenvif, (void *)REG_ICASE, RSRC_CONF, RAW_ARGS, a header-name, regex and a list of variables. }, -{ UnSetEnvIfZero, set_flag_slot, -(void *)XtOffsetOf(sei_cfg_rec,zero_means_unset), -RSRC_CONF, FLAG, On or Off }, { BrowserMatch, add_browser, (void *)0, RSRC_CONF, ITERATE2, A browser regex and a list of variables. }, { BrowserMatchNoCase, add_browser, (void *)REG_ICASE, @@ -310,21 +304,11 @@ elts = (table_entry *)b-features-elts; for (j = 0; j b-features-nelts; ++j) { - if ((!strcmp(elts[j].val, !)) || - (sconf-zero_means_unset (!strcmp(elts[j].val, 0 { - + if (!strcmp(elts[j].val, !)) { table_unset(r-subprocess_env, elts[j].key); -#ifdef SETENV_DEBUG - log_printf(r-server, mod_setenvif: unsetting %s, -elts[j].key); -#endif } else { table_set(r-subprocess_env, elts[j].key, elts[j].val); -#ifdef SETENV_DEBUG - log_printf(r-server, mod_setenvif: setting %s to %s, -elts[j].key, elts[j].val); -#endif } } }
cvs commit: apachen/src/main http_request.c http_request.h http_config.h
coar97/08/25 09:02:31 Modified:src CHANGES src/main http_request.c http_request.h http_config.h Log: Add r-mtime field to reduce gratuitous date parsing, and update_mtime() function to advance it as needed. (This will be used by the ETag and Last-Modified changes coming shortly.) Reviewed by: Roy Fielding Revision ChangesPath 1.420 +8 -2 apachen/src/CHANGES Index: CHANGES === RCS file: /export/home/cvs/apachen/src/CHANGES,v retrieving revision 1.419 retrieving revision 1.420 diff -u -r1.419 -r1.420 --- CHANGES 1997/08/25 02:26:52 1.419 +++ CHANGES 1997/08/25 16:02:21 1.420 @@ -1,5 +1,11 @@ Changes with Apache 1.3a2 + *) API: A new field in the request_rec, r-mtime, has been added to + avoid gratuitous parsing of date strings. It is intended to hold + the last-modified date of the resource (if applicable). An + update_mtime() routine has also been added to advance it if + appropriate. [Roy Fielding, Ken Coar] + *) If a htaccess file can not be read due to bad permissions, deny access to the directory with a HTTP_FORBIDDEN. The previous behavior was to ignore the htaccess file if it could not @@ -14,8 +20,8 @@ *) Canonicalise filenames under Win32. Short filenames are converted to long ones. Backslashes are converted to forward - slashes. Case is converted to lower. Parts of URLs that do not - correspond to files are left completely alone. [Ben Laurie] + slashes. Case is converted to lower. Parts of URLs that do not + correspond to files are left completely alone. [Ben Laurie] *) PORT: 2 new OSs added to the list of ports: Encore's UMAX V: Arieh Markel [EMAIL PROTECTED] 1.79 +12 -0 apachen/src/main/http_request.c Index: http_request.c === RCS file: /export/home/cvs/apachen/src/main/http_request.c,v retrieving revision 1.78 retrieving revision 1.79 diff -u -r1.78 -r1.79 --- http_request.c1997/08/19 07:52:42 1.78 +++ http_request.c1997/08/25 16:02:27 1.79 @@ -1201,3 +1201,15 @@ (r-prev == NULL); /* otherwise, this is an internal redirect */ } + +/* + * Function to set the r-mtime field to the specified value if it's later + * than what's already there. + */ +API_EXPORT(time_t) update_mtime(request_rec *r, time_t dependency_mtime) +{ +if (r-mtime dependency_mtime) { + r-mtime = dependency_mtime; +} +return r-mtime; +} 1.15 +1 -0 apachen/src/main/http_request.h Index: http_request.h === RCS file: /export/home/cvs/apachen/src/main/http_request.h,v retrieving revision 1.14 retrieving revision 1.15 diff -u -r1.14 -r1.15 --- http_request.h1997/08/18 07:17:27 1.14 +++ http_request.h1997/08/25 16:02:27 1.15 @@ -87,6 +87,7 @@ API_EXPORT(void) internal_redirect_handler (const char *new_uri, request_rec *); API_EXPORT(int) some_auth_required (request_rec *r); API_EXPORT(int) is_initial_req(request_rec *r); +API_EXPORT(time_t) update_mtime(request_rec *r, time_t dependency_mtime); #ifdef CORE_PRIVATE /* Function called by main.c to handle first-level request */ 1.46 +1 -1 apachen/src/main/http_config.h Index: http_config.h === RCS file: /export/home/cvs/apachen/src/main/http_config.h,v retrieving revision 1.45 retrieving revision 1.46 diff -u -r1.45 -r1.46 --- http_config.h 1997/08/23 04:00:28 1.45 +++ http_config.h 1997/08/25 16:02:28 1.46 @@ -246,7 +246,7 @@ * handle it back-compatibly, or at least signal an error). */ -#define MODULE_MAGIC_NUMBER 19970818 +#define MODULE_MAGIC_NUMBER 19970825 #define STANDARD_MODULE_STUFF MODULE_MAGIC_NUMBER, -1, __FILE__, NULL /* Generic accessors for other modules to get at their own module-specific
cvs commit: apachen/htdocs/manual/misc FAQ.html
coar97/08/25 09:13:18 Modified:htdocs/manual/misc FAQ.html Log: Update FAQ #35 (where's the dump?) to mention the new-for-1.3 CoreDumpDirectory directive. Submitted by: Lars Eilebrecht [EMAIL PROTECTED] Revision ChangesPath 1.87 +13 -8 apachen/htdocs/manual/misc/FAQ.html Index: FAQ.html === RCS file: /export/home/cvs/apachen/htdocs/manual/misc/FAQ.html,v retrieving revision 1.86 retrieving revision 1.87 diff -u -r1.86 -r1.87 --- FAQ.html 1997/08/02 21:57:40 1.86 +++ FAQ.html 1997/08/25 16:13:15 1.87 @@ -15,7 +15,7 @@ !--#include virtual=header.html -- H1 ALIGN=CENTERApache Server Frequently Asked Questions/H1 P - $Revision: 1.86 $ ($Date: 1997/08/02 21:57:40 $) + $Revision: 1.87 $ ($Date: 1997/08/25 16:13:15 $) /P P The latest version of this FAQ is always available from the main @@ -609,7 +609,7 @@ allow all files named quot;SAMP*.cgi/SAMPquot; to be executable. Perhaps all you want is to enable a particular file in a normal directory to be executable. This can be alternatively accomplished - via + EMvia/EM A HREF=../mod/mod_rewrite.html SAMPmod_rewrite/SAMP/A @@ -1351,10 +1351,13 @@ /P P The canonical location for Apache's core-dump files is the - A - HREF=../mod/core.html#serverroot - ServerRoot/A - directory. + A HREF=../mod/core.html#serverrootServerRoot/A + directory. As of Apache version 1.3, the location can be set EMvia/EM + the + A HREF=../mod/core.html#coredumpdirectoryCoreDumpDirectory/A + directive to a different directory. Make sure that this directory is + writable by the user the server runs as (as opposed to the user the server + is EMstarted/EM as). /P HR /LI @@ -1986,8 +1989,10 @@ /A P You can't! The reason is: First, case translations for arbitrary length URLs - cannot be done via regex patterns and corresponding substitutions. One need - a per-character pattern like sed/Perl SAMPtr|..|..|/SAMP feature. Second, just + cannot be done EMvia/EM regex patterns and corresponding substitutions. + One need + a per-character pattern like sed/Perl SAMPtr|..|..|/SAMP feature. + Second, just making URLs always upper or lower case will not resolve the complete problem of case-INSENSITIVE URLs, because actually the URLs had to be rewritten to the correct case-variant residing on the filesystem because in later
cvs commit: apachen/htdocs/manual/mod core.html
brian 97/08/25 12:26:06 Modified:htdocs/manual/mod core.html Log: Submitted by: Martin Kraemer [EMAIL PROTECTED] Directive had been moved. Revision ChangesPath 1.75 +1 -1 apachen/htdocs/manual/mod/core.html Index: core.html === RCS file: /export/home/cvs/apachen/htdocs/manual/mod/core.html,v retrieving revision 1.74 retrieving revision 1.75 diff -u -r1.74 -r1.75 --- core.html 1997/08/24 14:16:04 1.74 +++ core.html 1997/08/25 19:26:03 1.75 @@ -177,7 +177,7 @@ A HREF=mod_autoindex.html#addiconbyencodingAddIconByEncoding/A, A HREF=mod_autoindex.html#addiconbytypeAddIconByType/A, A HREF=mod_autoindex.html#defaulticonDefaultIcon/A, -A HREF=mod_autoindex.html#directoryindexDirectoryIndex/A, +A HREF=mod_dir.html#directoryindexDirectoryIndex/A, A HREF=mod_autoindex.html#fancyindexingFancyIndexing/A, A HREF=mod_autoindex.html#headernameHeaderName/A, A HREF=mod_autoindex.html#indexignoreIndexIgnore/A,
cvs commit: apachen/src/helpers TestCompile
jim 97/08/25 17:13:52 Modified:src/helpers TestCompile Log: Document 'func' option of TestCompile and make it consistant as far as handling verbose and silent options Revision ChangesPath 1.6 +9 -2 apachen/src/helpers/TestCompile Index: TestCompile === RCS file: /export/home/cvs/apachen/src/helpers/TestCompile,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- TestCompile 1997/08/21 18:12:21 1.5 +++ TestCompile 1997/08/26 00:13:48 1.6 @@ -4,11 +4,14 @@ # # Yet another Apache Configure helper script. # This script tests certain aspects of the compilation -# process. Right now, it can perform 2 tests: +# process. Right now, it can perform 3 tests: # # ./helpers/TestCompile lib libname #Which checks to see if libname exists on this system # +# ./helpers/TestCompile func function +#Which checks to see if function exists +# # ./helpers/TestCompile sanity #Which does a simple sanity check/test compile # @@ -70,7 +73,11 @@ exit fi TLIB= - ERRDIR='2/dev/null' + if [ $VERBOSE = yes ]; then + ERRDIR= + else + ERRDIR='2/dev/null' + fi TARGET='testfunc' cat EOF testfunc.c void main(void) {
cvs commit: apachen/src Configure
jim 97/08/25 17:59:44 Modified:src Configure Log: LIBS only needs -lpthread with Solaris 2.5.x Revision ChangesPath 1.141 +6 -1 apachen/src/Configure Index: Configure === RCS file: /export/home/cvs/apachen/src/Configure,v retrieving revision 1.140 retrieving revision 1.141 diff -u -r1.140 -r1.141 --- Configure 1997/08/24 18:23:58 1.140 +++ Configure 1997/08/26 00:59:40 1.141 @@ -359,7 +359,12 @@ SOLVER=`echo $PLAT | sed -e 's/^.*solaris2.//'` OS=Solaris $SOLVER CFLAGS=$CFLAGS -DSOLARIS2=$SOLVER - LIBS=$LIBS -lsocket -lnsl -lpthread + LIBS=$LIBS -lsocket -lnsl + case $SOLVER in + 25*) + LIBS=$LIBS -lpthread + ;; + esac DBM_LIB= case $SOLVER in 2[0123]*)
cvs commit: apachen/src Configure
jim 97/08/25 18:02:53 Modified:src Configure Log: Oops... -lpthread is needed for 2.5.0 _and later_... Allow for Solaris 2.9.x right now :) Revision ChangesPath 1.142 +1 -1 apachen/src/Configure Index: Configure === RCS file: /export/home/cvs/apachen/src/Configure,v retrieving revision 1.141 retrieving revision 1.142 diff -u -r1.141 -r1.142 --- Configure 1997/08/26 00:59:40 1.141 +++ Configure 1997/08/26 01:02:51 1.142 @@ -361,7 +361,7 @@ CFLAGS=$CFLAGS -DSOLARIS2=$SOLVER LIBS=$LIBS -lsocket -lnsl case $SOLVER in - 25*) + 2[56789]*) LIBS=$LIBS -lpthread ;; esac
cvs commit: apachen/htdocs/manual/mod core.html directives.html
brian 97/08/25 18:20:38 Modified:htdocs/manual/mod core.html directives.html Log: Submitted by: Lars Eilebrecht [EMAIL PROTECTED] Reviewed by: Brian Behlendorf Document ContentDigest. Revision ChangesPath 1.76 +31 -0 apachen/htdocs/manual/mod/core.html Index: core.html === RCS file: /export/home/cvs/apachen/htdocs/manual/mod/core.html,v retrieving revision 1.75 retrieving revision 1.76 diff -u -r1.75 -r1.76 --- core.html 1997/08/25 19:26:03 1.75 +++ core.html 1997/08/26 01:20:34 1.76 @@ -29,6 +29,7 @@ liA HREF=#authtypeAuthType/A liA HREF=#bindaddressBindAddress/A liA HREF=#clearmodulelistClearModuleList/A +liA HREF=#contentdigestContentDigest/A liA HREF=#coredumpdirectoryCoreDumpDirectory/A liA HREF=#defaulttypeDefaultType/A liA HREF=#directorylt;Directorygt;/A @@ -272,6 +273,36 @@ The server comes with a built-in list of active modules. This directive clears the list. It is assumed that the list will then be re-populated using the A HREF=#addmoduleAddModule/A directive.phr + +h2A name=contentdigestContentDigest directive/A/h2 +!--%plaintext lt;?INDEX {\tt ContentDigest} directivegt; -- +strongSyntax:/strong ContentDigest emon|off/embr +strongDefault:/strong codeContentDigest off/codebr +strongContext:/strong anybr +strongOverride:/strong AuthConfigbr +strongStatus:/strong experimentalp +strongCompatibility:/strong ContentDigest is only available in Apache 1.1 and laterp + +This directive enables the generation of codeContent-MD5/code headers +as defined in RFC1864 respectively RFC2068.P + +MD5 is an algorithm for computing a message digest (sometimes called +fingerprint) of arbitrary-length data, with a high degree of confidence +that any alterations in the data will be reflected in alterations in the +message digest.P + +The codeContent-MD5/code header provides an end-to-end message +integrity check (MIC) of the entity-body. A proxy or client may check this +header for detecting accidental modification of the entity-body +in transit. +Example header: +pre Content-MD5: AuLb7Dp1rqtRtxz2m9kRpA==/preP + +Note that this can cause performance problems on your server +since the message digest is computed on every request +(the values are not cached). + +hr h2A name=coredumpdirectoryCoreDumpDirectory directive/A/h2 !--%plaintext lt;?INDEX {\tt CoreDumpDirectory} directivegt; -- 1.31 +1 -0 apachen/htdocs/manual/mod/directives.html Index: directives.html === RCS file: /export/home/cvs/apachen/htdocs/manual/mod/directives.html,v retrieving revision 1.30 retrieving revision 1.31 diff -u -r1.30 -r1.31 --- directives.html 1997/08/23 03:10:54 1.30 +++ directives.html 1997/08/26 01:20:35 1.31 @@ -69,6 +69,7 @@ liA HREF=mod_proxy.html#cacherootCacheRoot/A liA HREF=mod_proxy.html#cachesizeCacheSize/A liA HREF=core.html#clearmodulelistClearModuleList/A +liA HREF=core.html#contentdigestContentDigest/A liA HREF=mod_usertrack.html#cookieexpiresCookieExpires/A liA HREF=mod_cookies.html#cookielogCookieLog/A (mod_cookies) liA HREF=mod_log_config.html#cookielogCookieLog/A (mod_log_config)
cvs commit: apachen/htdocs/manual/mod core.html
brian 97/08/25 18:51:34 Modified:htdocs/manual/mod core.html Log: Document the type of responses which contain content-md5. Revision ChangesPath 1.77 +5 -1 apachen/htdocs/manual/mod/core.html Index: core.html === RCS file: /export/home/cvs/apachen/htdocs/manual/mod/core.html,v retrieving revision 1.76 retrieving revision 1.77 diff -u -r1.76 -r1.77 --- core.html 1997/08/26 01:20:34 1.76 +++ core.html 1997/08/26 01:51:32 1.77 @@ -300,7 +300,11 @@ Note that this can cause performance problems on your server since the message digest is computed on every request -(the values are not cached). +(the values are not cached).P + +codeContent-MD5/code is only sent for documents served by the +core, and not by any module. For example, SSI documents, output from +CGI scripts, and byte range responses do not have this header. hr