/[Apache-SVN]/httpd/httpd/branches/2.2.x/server/config.c
ViewVC logotype

Log of /httpd/httpd/branches/2.2.x/server/config.c

Parent Directory Parent Directory | Revision Log Revision Log


Links to HEAD: (view) (annotate)
Sticky Revision:

Revision 773881 - (view) (annotate) - [select for diffs]
Modified Tue May 12 13:17:29 2009 UTC (6 months, 2 weeks ago) by covener
File length: 69351 byte(s)
Diff to previous 722642 (colored)
backport 772997, 773322, 773342 from trunk.
Reviewed By: jorton, rpluem, covener

Security fix for CVE-2009-1195: fix Options handling such that
'AllowOverride Options=IncludesNoExec' does not permit Includes with
exec= enabled to be configured in an .htaccess file:

* include/http_core.h: Change semantics of Includes/IncludeNoExec
 options bits to be additive; OPT_INCLUDES now means SSI is enabled
 without exec=.  OPT_INCLUDES|OPT_INC_WITH_EXEC means SSI is enabled
 with exec=.

* server/core.c (create_core_dir_config): Remove defunct OPT_INCNOEXEC
 from default override_opts; no functional change.
 (merge_core_dir_configs): Update logic to ensure that exec= is
 disabled in a context where IncludesNoexec is configured, even if
 Includes-with-exec is permitted in the inherited options set.
 (set_allow_opts, set_options): Update to reflect new semantics
 of OPT_INCLUDES, OPT_INC_WITH_EXEC.

* server/config.c: Update to remove OPT_INCNOEXEC from default
 override_opts; no functional change.

* modules/filters/mod_include.c (includes_filter): Update to reflect
 new options semantics - disable exec= support if the
 OPT_INC_WITH_EXEC bit is not set.

Submitted by: Jonathan Peatfield <j.s.peatfield damtp.cam.ac.uk>,
         jorton
Thanks to: Vincent Danon <vdanon redhat.com>



Revision 722642 - (view) (annotate) - [select for diffs]
Modified Tue Dec 2 22:28:21 2008 UTC (11 months, 3 weeks ago) by covener
File length: 69399 byte(s)
Diff to previous 463488 (colored)
Merge r722213,r722081, and r721679 from trunk:

* Avoid sending no answer at all if a custom error page causes an
  AP_FILTER_ERROR.

* allow ap_invoke_handler() to pass-through AP_FILTER_ERROR as if it were
  a reserved status code (OK/DECLINED/SUSPENDED). Prevents ap_die() from seeing a
  500 error when the http header filter has already taken care of the proper
  error response

* To be safe, consume the entire brigade after processing an error bucket in
  the HTTP output filter.


Revision 463488 - (view) (annotate) - [select for diffs]
Modified Thu Oct 12 22:55:03 2006 UTC (3 years, 1 month ago) by minfrin
File length: 69360 byte(s)
Diff to previous 425051 (colored)
core: Deal with the widespread use of apr_status_t return values
as HTTP status codes, as documented in PR#31759 (a bug shared by
the default handler, mod_cgi, mod_cgid, mod_proxy, and probably
others).

+1: niq, minfrin, rpluem

Revision 425051 - (view) (annotate) - [select for diffs]
Modified Mon Jul 24 13:34:19 2006 UTC (3 years, 4 months ago) by rpluem
File length: 68592 byte(s)
Diff to previous 421103 (colored)
Merge r399947, r406697 from trunk:

* Add optional 'scheme://' prefix to ServerName directive.  For
  'https', mod_http returns "https" for the ap_hook_http_scheme and
  DEFAULT_HTTPS_PORT for ap_hook_default_port.  This fixes Redirect
  responses to requests for directories without a trailing slash
  when httpd runs behind a proxy or offload device that processes
  SSL.  It also enables support for Subversion in that
  configuration.  This change is completely backwards compatible
  and passes the perl-framework.  Minor mmn bump because I add a
  field to server_rec.

* Document r399947, addition of optional scheme:// to ServerName directive

PR: 33398
Submitted by: sctemme
Reviewed by: sctemme, rpluem, wrowe

Revision 421103 - (view) (annotate) - [select for diffs]
Modified Wed Jul 12 03:38:44 2006 UTC (3 years, 4 months ago) by fielding
File length: 68534 byte(s)
Diff to previous 396056 (colored)
update license header text

Revision 396056 - (view) (annotate) - [select for diffs]
Modified Sat Apr 22 01:53:06 2006 UTC (3 years, 7 months ago) by pquerna
File length: 68387 byte(s)
Diff to previous 395231 (colored)
Revert r395231 from the 2.2.x branch.  This gets us back to the old place with regard to the copyright statements.

Revision 395231 - (view) (annotate) - [select for diffs]
Modified Wed Apr 19 12:33:16 2006 UTC (3 years, 7 months ago) by colm
File length: 68387 byte(s)
Diff to previous 345239 (colored)
Update the last year of copyright for the 2.2.x branch

Revision 345239 - (view) (annotate) - [select for diffs]
Modified Thu Nov 17 13:39:15 2005 UTC (4 years ago) by jim
File length: 68387 byte(s)
Diff to previous 332309 (colored)
Merge r345053 from trunk:

No functional change: remove "internal" tab spacing/formatting.



Reviewed by: jim

Revision 332309 - (view) (annotate) - [select for diffs]
Modified Thu Nov 10 15:20:05 2005 UTC (4 years ago) by jim
File length: 68382 byte(s)
Diff to previous 234103 (colored)
No functional change: remove trailing whitespace. This also means
that "blank" lines, which had consisted of just spaces
and/or tabs are now truly blank lines

Revision 234103 - (view) (annotate) - [select for diffs]
Modified Sat Aug 20 18:21:45 2005 UTC (4 years, 3 months ago) by pquerna
File length: 68394 byte(s)
Diff to previous 179618 (colored)
Recreate 2.2.x branch from trunk.

Revision 179618 - (view) (annotate) - [select for diffs]
Modified Thu Jun 2 17:52:26 2005 UTC (4 years, 5 months ago) by pquerna
Original Path: httpd/httpd/trunk/server/config.c
File length: 68394 byte(s)
Diff to previous 179617 (colored)
- Fix style nits in the new hash config code. No Functional changes.

Revision 179617 - (view) (annotate) - [select for diffs]
Modified Thu Jun 2 17:49:46 2005 UTC (4 years, 5 months ago) by pquerna
Original Path: httpd/httpd/trunk/server/config.c
File length: 68394 byte(s)
Diff to previous 178990 (colored)
- Fix graceful restarts with the new hashed configuration.  The hash now allocates out of the pconf pool, instead of the process pool.

Revision 178990 - (view) (annotate) - [select for diffs]
Modified Sun May 29 21:39:39 2005 UTC (4 years, 5 months ago) by pquerna
Original Path: httpd/httpd/trunk/server/config.c
File length: 67671 byte(s)
Diff to previous 168202 (colored)
- Use a hash for the configuration command lookup implementation.  Now modules can properly directives without dependence on the LoadModule order.

Revision 168202 - (view) (annotate) - [select for diffs]
Modified Wed May 4 22:23:00 2005 UTC (4 years, 6 months ago) by pquerna
Original Path: httpd/httpd/trunk/server/config.c
File length: 66682 byte(s)
Diff to previous 167965 (colored)
Add AP_INIT_TAKE_ARGV. There can be some inconsistent results because of the behavoir of ap_getword_conf. Do not rely upon any last argument that is "".  If the argument is in the middle of the line, it should work correctly.

This is updated from the version sent to dev@httpd to fix the behavoir with 0 arguments.

* include/http_config.h: minor MMN bump for the new interface.
* modules/generators/mod_autoindex.c: Migrate IndexOptions to the new ARGV command type.

Revision 167965 - (view) (annotate) - [select for diffs]
Modified Tue May 3 19:41:02 2005 UTC (4 years, 6 months ago) by jorton
Original Path: httpd/httpd/trunk/server/config.c
File length: 66201 byte(s)
Diff to previous 159808 (colored)
* server/config.c (process_resource_config_nofnmatch): Fail with
useful error message if the config file can't be opened.

Revision 159808 - (view) (annotate) - [select for diffs]
Modified Sat Apr 2 20:00:39 2005 UTC (4 years, 7 months ago) by rbowen
Original Path: httpd/httpd/trunk/server/config.c
File length: 66124 byte(s)
Diff to previous 151408 (colored)
"misspelled" has been "mis-spelled" for quite long enough.

Revision 151408 - (view) (annotate) - [select for diffs]
Modified Fri Feb 4 20:28:49 2005 UTC (4 years, 9 months ago) by jerenkrantz
Original Path: httpd/httpd/trunk/server/config.c
File length: 66126 byte(s)
Diff to previous 106103 (colored)
Update copyright year to 2005 and standardize on current copyright owner line.

Revision 106103 - (view) (annotate) - [select for diffs]
Modified Sun Nov 21 18:50:36 2004 UTC (5 years ago) by nd
Original Path: httpd/httpd/trunk/server/config.c
File length: 66090 byte(s)
Diff to previous 104685 (colored)
general property cleanup

Revision 104685 - (view) (annotate) - [select for diffs]
Modified Tue Aug 17 13:47:10 2004 UTC (5 years, 3 months ago) by jorton
Original Path: httpd/httpd/trunk/server/config.c
File length: 66090 byte(s)
Diff to previous 104310 (colored)
Implement -t -DDUMP_MODULES using generic test_config hook rather than
hooking into mod_so from main.c:

* include/http_config.h, server/config.c: Declare test_config hook.

* server/main.c: Drop hooks into mod_so; run test_config hooks.

* modules/mappers/mod_so.h: Drop ap_dump_loaded_modules optional
function.

* modules/mappers/mod_so.c (dump_loaded_modules): Renamed from
ap_dump_loaded_modules; only run if -DDUMP_MODULES is defined.
(register_hooks): Register test_config hook instead of optional
function.

Reviewed by: Justin Erenkrantz, Paul Querna

Revision 104310 - (view) (annotate) - [select for diffs]
Modified Fri Jul 16 20:30:43 2004 UTC (5 years, 4 months ago) by bnicholes
Original Path: httpd/httpd/trunk/server/config.c
File length: 65921 byte(s)
Diff to previous 104284 (colored)
Allocate memory from the temp_pool rather than the stack to avoid blowing fixed length stacks while evaluating  nested includes

Revision 104284 - (view) (annotate) - [select for diffs]
Modified Wed Jul 14 07:25:25 2004 UTC (5 years, 4 months ago) by pquerna
Original Path: httpd/httpd/trunk/server/config.c
File length: 65895 byte(s)
Diff to previous 104283 (colored)
remove tabs from my last commit.

Revision 104283 - (view) (annotate) - [select for diffs]
Modified Wed Jul 14 06:36:42 2004 UTC (5 years, 4 months ago) by pquerna
Original Path: httpd/httpd/trunk/server/config.c
File length: 65867 byte(s)
Diff to previous 103517 (colored)
Added 'AllowOverride Options=Indexes,MultiViews' to give an admin better
control over what options can be used in .htaccess files.

PR: 29310
Submitted by: Tom Alsberg <alsbergt-apache cs.huji.ac.il>

Revision 103517 - (view) (annotate) - [select for diffs]
Modified Sun Apr 25 17:23:31 2004 UTC (5 years, 7 months ago) by nd
Original Path: httpd/httpd/trunk/server/config.c
File length: 65519 byte(s)
Diff to previous 103516 (colored)
changed the following APIs to return an error instead of hard exiting:
ap_add_module, ap_add_loaded_module, ap_setup_prelinked_modules,
and ap_process_resource_config

Revision 103516 - (view) (annotate) - [select for diffs]
Modified Sun Apr 25 17:05:51 2004 UTC (5 years, 7 months ago) by nd
Original Path: httpd/httpd/trunk/server/config.c
File length: 64755 byte(s)
Diff to previous 103472 (colored)
ap_add_named_module is not used and maintained anymore. Drop it.

Revision 103472 - (view) (annotate) - [select for diffs]
Modified Wed Apr 21 21:24:28 2004 UTC (5 years, 7 months ago) by nd
Original Path: httpd/httpd/trunk/server/config.c
File length: 65265 byte(s)
Diff to previous 103290 (colored)
Include directives no longer refuse to process symlinks on
directories. Instead there's now a maximum nesting level
of included directories (128 as distributed). This is configurable
at compile time using the -DAP_MAX_INCLUDE_DIR_DEPTH switch.

PR: 28492

Revision 103290 - (view) (annotate) - [select for diffs]
Modified Wed Apr 7 21:43:01 2004 UTC (5 years, 7 months ago) by bnicholes
Original Path: httpd/httpd/trunk/server/config.c
File length: 64713 byte(s)
Diff to previous 102670 (colored)
Don't allocation large buffers on the stack to avoid over-running a fixed length stack when ap_build_cont_config() is called recursively (ie. nested <IfDefine> blocks).

Revision 102670 - (view) (annotate) - [select for diffs]
Modified Wed Feb 18 15:44:48 2004 UTC (5 years, 9 months ago) by geoff
Original Path: httpd/httpd/trunk/server/config.c
File length: 64478 byte(s)
Diff to previous 102619 (colored)
fix "Expected </Foo>> but saw </Foo>" errors in nested,
argumentless containers.

Revision 102619 - (view) (annotate) - [select for diffs]
Modified Mon Feb 9 20:40:53 2004 UTC (5 years, 9 months ago) by nd
Original Path: httpd/httpd/trunk/server/config.c
File length: 64322 byte(s)
Diff to previous 102589 (colored)
fix name of The Apache Software Foundation

Revision 102589 - (view) (annotate) - [select for diffs]
Modified Sun Feb 8 13:58:22 2004 UTC (5 years, 9 months ago) by nd
Original Path: httpd/httpd/trunk/server/config.c
File length: 64318 byte(s)
Diff to previous 102525 (colored)
fix copyright dates according to the first check in

Revision 102525 - (view) (annotate) - [select for diffs]
Modified Fri Feb 6 22:58:42 2004 UTC (5 years, 9 months ago) by nd
Original Path: httpd/httpd/trunk/server/config.c
File length: 64318 byte(s)
Diff to previous 102469 (colored)
apply Apache License, Version 2.0

Revision 102469 - (view) (annotate) - [select for diffs]
Modified Fri Jan 30 19:43:38 2004 UTC (5 years, 9 months ago) by geoff
Original Path: httpd/httpd/trunk/server/config.c
File length: 66537 byte(s)
Diff to previous 102135 (colored)
Keep focus of ITERATE and ITERATE2 on the current module when
the module chooses to return DECLINE_CMD for the directive.
PR: 22299

Revision 102135 - (view) (annotate) - [select for diffs]
Modified Thu Jan 1 13:26:26 2004 UTC (5 years, 10 months ago) by nd
Original Path: httpd/httpd/trunk/server/config.c
File length: 66414 byte(s)
Diff to previous 101415 (colored)
update license to 2004.

Revision 101415 - (view) (annotate) - [select for diffs]
Modified Sat Oct 11 06:37:45 2003 UTC (6 years, 1 month ago) by stas
Original Path: httpd/httpd/trunk/server/config.c
File length: 66414 byte(s)
Diff to previous 101154 (colored)
fix the config parser to support <Foo>..</Foo> containers (no
arguments in the opening tag) supported by httpd 1.3. Without
this change mod_perl 2.0's <Perl> sections are broken.
PR:
Obtained from:
Submitted by:	"Philippe M. Chiasson" <gozer@cpan.org>
Reviewed by:	stas

Revision 101154 - (view) (annotate) - [select for diffs]
Modified Wed Sep 3 19:27:12 2003 UTC (6 years, 2 months ago) by trawick
Original Path: httpd/httpd/trunk/server/config.c
File length: 66329 byte(s)
Diff to previous 100931 (colored)
switch to APR 1.0 API (which is still in flux)

because of the changes to the argument lists of apr_mmap_dup and apr_socket_create,
2.1-dev won't build with apr and apr-util's 0.9 branch anymore

Revision 100931 - (view) (annotate) - [select for diffs]
Modified Thu Aug 7 16:38:19 2003 UTC (6 years, 3 months ago) by nd
Original Path: httpd/httpd/trunk/server/config.c
File length: 66309 byte(s)
Diff to previous 98693 (colored)
split ap_process_resource_config into two functions (since we don't wanna
change the api). Only the first one (the ap_ entry point) now checks
for fnmatch and the second one will be called for every file/directory
included.
This, however, avoids infinite recursions, if a filename contains
wildcard characters.

PR: 22194

Revision 98693 - (view) (annotate) - [select for diffs]
Modified Mon Feb 17 07:04:50 2003 UTC (6 years, 9 months ago) by jerenkrantz
Original Path: httpd/httpd/trunk/server/config.c
File length: 64291 byte(s)
Diff to previous 98671 (colored)
Allow restart of httpd to occur even with syntax errors in the config
file.  (Out-of-date DSOs with bad MMNs will still be fatal unfortunately.)

Add return parameter to ap_process_config_tree - OK on success, !OK on
syntax error.  We will no longer call exit() from ap_process_config_tree.
The caller must exit if there is an error (makes sense anyway).  This allows
the initial start-up code to delay the exit until trying to let the
signal_server optional function execute first.

(The chances are that the syntax error isn't in the PidFile directive.  If
that happens, we'll try the default one.  Oh, well.)

PR: 16813

Revision 98671 - (view) (annotate) - [select for diffs]
Modified Sat Feb 15 04:57:10 2003 UTC (6 years, 9 months ago) by nd
Original Path: httpd/httpd/trunk/server/config.c
File length: 64213 byte(s)
Diff to previous 98573 (colored)
fill out parms->err_directive while looking for open parents.
Otherwise when trying to log the error
(a) we segfault (if the directive was in another file)
(b) we show a wrong occurrence line number (start line of the previous
    container) or probably segfault, too (if no previous container exists).

PR: 17093

Revision 98573 - (view) (annotate) - [select for diffs]
Modified Mon Feb 3 17:53:28 2003 UTC (6 years, 9 months ago) by nd
Original Path: httpd/httpd/trunk/server/config.c
File length: 64186 byte(s)
Diff to previous 98270 (colored)
finished that boring job:
update license to 2003.

Happy New Year! ;-))

Revision 98270 - (view) (annotate) - [select for diffs]
Modified Tue Jan 14 18:34:14 2003 UTC (6 years, 10 months ago) by wrowe
Original Path: httpd/httpd/trunk/server/config.c
File length: 64186 byte(s)
Diff to previous 98264 (colored)
  Fix a typo reported by Blair Zajac <blair@orcaware.com>

Revision 98264 - (view) (annotate) - [select for diffs]
Modified Tue Jan 14 16:56:16 2003 UTC (6 years, 10 months ago) by wrowe
Original Path: httpd/httpd/trunk/server/config.c
File length: 64185 byte(s)
Diff to previous 98260 (colored)
  ap_server_root_relative never guarenteed that the resource exists, or
  isn't a file pattern.  Correct the code to accept these cases (applied
  to both 2.0 and 2.1.)

Revision 98260 - (view) (annotate) - [select for diffs]
Modified Tue Jan 14 03:01:52 2003 UTC (6 years, 10 months ago) by wrowe
Original Path: httpd/httpd/trunk/server/config.c
File length: 63950 byte(s)
Diff to previous 97819 (colored)
  Once again, allow <Directory "C:\Users\*\html_files"> or other wildcard
  patterns in Directory blocks.  Note a similar problem with Includes *.conf

Revision 97819 - (view) (annotate) - [select for diffs]
Modified Mon Dec 9 14:43:32 2002 UTC (6 years, 11 months ago) by stoddard
Original Path: httpd/httpd/trunk/server/config.c
File length: 63883 byte(s)
Diff to previous 97818 (colored)
Tweak

Revision 97818 - (view) (annotate) - [select for diffs]
Modified Mon Dec 9 14:42:09 2002 UTC (6 years, 11 months ago) by stoddard
Original Path: httpd/httpd/trunk/server/config.c
File length: 63884 byte(s)
Diff to previous 96776 (colored)
AddModules does not exist anymore

Submitted by:	Stas Bekman

Revision 96776 - (view) (annotate) - [select for diffs]
Modified Thu Sep 12 20:04:07 2002 UTC (7 years, 2 months ago) by ianh
Original Path: httpd/httpd/trunk/server/config.c
File length: 63883 byte(s)
Diff to previous 96449 (colored)
Add support for using fnmatch patterns in the final path segment of an
Include statement (eg.. include /foo/bar/*.conf).
and remove the noise on stderr during config dir processing.

Submitted by:	Joe Orton <jorton@redhat.com>
Reviewed by:	Ian Holsman, Brian Pane

Revision 96449 - (view) (annotate) - [select for diffs]
Modified Mon Aug 19 20:40:08 2002 UTC (7 years, 3 months ago) by ianh
Original Path: httpd/httpd/trunk/server/config.c
File length: 63108 byte(s)
Diff to previous 95966 (colored)
Make module loading error messages more informative
Bug #11213
Obtained from: Ian Darwin <ian779@darwinsys.com>

Reviewed by:   Ian Holsman

Revision 95966 - (view) (annotate) - [select for diffs]
Modified Sat Jul 6 20:04:38 2002 UTC (7 years, 4 months ago) by ianh
Original Path: httpd/httpd/trunk/server/config.c
File length: 63007 byte(s)
Diff to previous 95906 (colored)
Renames Pending:
 This clears the list of renames pending in apr-util.
 Parts of this list was alreadu done, but the pending list hadn't been updated.

 apr_hook_debug_current     from apr_current_hooking_module
 apr_hook_debug_show        from apr_show_hook

 apr_hook_global_pool       from apr_global_hook_pool
 apr_hook_sort_all          from apr_sort_hooks

 apr_uri_port_of_scheme     from apr_uri_default_port_for_scheme
 apr_uri_unparse            from apr_uri_unparse_components
 apr_uri_parse              from apr_uri_parse_components
 apr_uri_parse_hostinfo     from apr_uri_parse_hostinfo_components

 apr_uri_t                  from apr_uri_components

 All APR_URI_*              from all APU_URI_* symbols
 All APR_UNP_*              from all UNP_* symbols

PR:
Obtained from:
Submitted by:	 Thom May
Reviewed by:

Revision 95906 - (view) (annotate) - [select for diffs]
Modified Fri Jun 28 08:40:25 2002 UTC (7 years, 5 months ago) by jerenkrantz
Original Path: httpd/httpd/trunk/server/config.c
File length: 63006 byte(s)
Diff to previous 95623 (colored)
Add a filter_init function to the filters so that a filter can execute
arbitrary code before the handlers are invoked.

This resolves an issue with incorrect 304s on If-Modified-Since mod_include
requests since ap_meets_conditions() is not aware that this is a dynamic
request and it is not possible to satisfy 304 for these requests (unless
xbithack full is on, of course).  When mod_include runs as a filter, it is
too late to set any flag since the handler is responsible for calling
ap_meets_conditions(), which it should do before generating any data.

If a module doesn't need to run such arbitrary code, it can just pass NULL
as the argument and all is well.

PR:	9673
Reviewed by:	Ryan Bloom and others

Revision 95623 - (view) (annotate) - [select for diffs]
Modified Wed Jun 12 23:59:31 2002 UTC (7 years, 5 months ago) by wrowe
Original Path: httpd/httpd/trunk/server/config.c
File length: 62269 byte(s)
Diff to previous 95186 (colored)
  Solve the 80/20 by initializing and storing server_rec->timeout and
  server_rec->keep_alive_timeout in apr_time_interval_t format (in apr
  units, whatever they be), as both values exist to pass into APR, and
  all APR timeouts are in apr_time_t.

Reviewed by:	Cliff Woolley

Revision 95186 - (view) (annotate) - [select for diffs]
Modified Mon May 20 15:05:43 2002 UTC (7 years, 6 months ago) by wrowe
Original Path: httpd/httpd/trunk/server/config.c
File length: 62231 byte(s)
Diff to previous 95149 (colored)
  A few noops (at the moment.)  Prepare for stuffing the directive into
  the conf tree, without reinvoking the directive, even when EXEC_ON_READ.

Revision 95149 - (view) (annotate) - [select for diffs]
Modified Fri May 17 11:11:39 2002 UTC (7 years, 6 months ago) by trawick
Original Path: httpd/httpd/trunk/server/config.c
File length: 62101 byte(s)
Diff to previous 94240 (colored)
stop using APLOG_NOERRNO in calls to ap_log_?error()

Revision 94240 - (view) (annotate) - [select for diffs]
Modified Wed Mar 27 22:42:16 2002 UTC (7 years, 8 months ago) by stoddard
Original Path: httpd/httpd/trunk/server/config.c
File length: 62319 byte(s)
Diff to previous 93965 (colored)
Add a new parameter to the quick_handler hook to instruct
quick handlers to optionally do a lookup rather than actually
serve content. This is the first of several changes required fix
several problems with how quick handlers work with subrequests.

Revision 93965 - (view) (annotate) - [select for diffs]
Modified Sat Mar 16 18:26:58 2002 UTC (7 years, 8 months ago) by wrowe
Original Path: httpd/httpd/trunk/server/config.c
File length: 62299 byte(s)
Diff to previous 93949 (colored)
  Eliminate potential ap_server_root_relative segfaults, with the input
  of Jeff Trawick's style changes to the first patches.  Doesn't include
  the fixes to ssl [more complex], and we won't trap errors that involve
  ap_serverroot, since we presume that was normalized on the way in.
  Therefore, testing ap_server_root_relative(DEFAULT_FOO) cases
  should never become necessary.

Revision 93949 - (view) (annotate) - [select for diffs]
Modified Fri Mar 15 09:50:14 2002 UTC (7 years, 8 months ago) by striker
Original Path: httpd/httpd/trunk/server/config.c
File length: 61958 byte(s)
Diff to previous 93918 (colored)
Since noone seemed to have a real problem with it, change !! to
something that raises fewer questions.

Revision 93918 - (view) (annotate) - [select for diffs]
Modified Wed Mar 13 20:48:07 2002 UTC (7 years, 8 months ago) by fielding
Original Path: httpd/httpd/trunk/server/config.c
File length: 61952 byte(s)
Diff to previous 93716 (colored)
Update our copyright for this year.

Revision 93716 - (view) (annotate) - [select for diffs]
Modified Tue Mar 5 20:42:31 2002 UTC (7 years, 8 months ago) by ianh
Original Path: httpd/httpd/trunk/server/config.c
File length: 61952 byte(s)
Diff to previous 93063 (colored)
Sander's Stylistic Submission
PR:
Obtained from:
Submitted by:
Reviewed by:

Revision 93063 - (view) (annotate) - [select for diffs]
Modified Mon Jan 28 23:49:40 2002 UTC (7 years, 9 months ago) by aaron
Original Path: httpd/httpd/trunk/server/config.c
File length: 57154 byte(s)
Diff to previous 92711 (colored)
The pre_config hook now takes a return value. This allows modules to
cause the server to bail out under error conditions.

Revision 92711 - (view) (annotate) - [select for diffs]
Modified Wed Jan 2 23:27:57 2002 UTC (7 years, 10 months ago) by bnicholes
Original Path: httpd/httpd/trunk/server/config.c
File length: 57135 byte(s)
Diff to previous 92602 (colored)
Making sure that the global variables have been initialized to avoid linker
problems at least on NetWare
Submitted by: Pavel Novy

Revision 92602 - (view) (annotate) - [select for diffs]
Modified Wed Dec 26 09:52:53 2001 UTC (7 years, 11 months ago) by brianp
Original Path: httpd/httpd/trunk/server/config.c
File length: 57107 byte(s)
Diff to previous 92471 (colored)
Removed a large (8KB) buffer from the stack in ap_invoke_handler()

Revision 92471 - (view) (annotate) - [select for diffs]
Modified Fri Dec 14 03:30:23 2001 UTC (7 years, 11 months ago) by wrowe
Original Path: httpd/httpd/trunk/server/config.c
File length: 57020 byte(s)
Diff to previous 92429 (colored)
  Move the insert_filter hook from the prepare request phase to the
  invoke handler phase, since it can't fail, and contributes nothing
  to the request 'character', but everything to it's invocation.

Revision 92429 - (view) (annotate) - [select for diffs]
Modified Tue Dec 11 19:36:05 2001 UTC (7 years, 11 months ago) by bnicholes
Original Path: httpd/httpd/trunk/server/config.c
File length: 56538 byte(s)
Diff to previous 92149 (colored)
Clean up GNU compiler issues on NetWare
Submitted by: Pavel Novy

Revision 92149 - (view) (annotate) - [select for diffs]
Modified Sat Nov 24 00:08:30 2001 UTC (8 years ago) by ianh
Original Path: httpd/httpd/trunk/server/config.c
File length: 56524 byte(s)
Diff to previous 92144 (colored)
change open_logs hook to return a value, allowing you to flag a error
while opening logs

Obtained from: Doug MacEachern

Revision 92144 - (view) (annotate) - [select for diffs]
Modified Fri Nov 23 16:35:22 2001 UTC (8 years ago) by ianh
Original Path: httpd/httpd/trunk/server/config.c
File length: 56504 byte(s)
Diff to previous 92141 (colored)
Modify post_config hook so that it can return a error,
causing the server not to start.
previous method was to call exit(1) which would not fail
gracefully

PR:
Obtained from:
Submitted by:
Reviewed by:	(Idea only Jeff Trawick)

Revision 92141 - (view) (annotate) - [select for diffs]
Modified Fri Nov 23 10:56:31 2001 UTC (8 years ago) by brianp
Original Path: httpd/httpd/trunk/server/config.c
File length: 56487 byte(s)
Diff to previous 91345 (colored)
restructured the conditional logic in ap_merge_per_dir_configs() for faster execution

Revision 91345 - (view) (annotate) - [select for diffs]
Modified Sun Oct 7 04:54:53 2001 UTC (8 years, 1 month ago) by wrowe
Original Path: httpd/httpd/trunk/server/config.c
File length: 56356 byte(s)
Diff to previous 91098 (colored)
  Great badness - not a good idea to return OK when you don't modify the
  resulting value, even if it's NULL.

Revision 91098 - (view) (annotate) - [select for diffs]
Modified Fri Sep 21 06:23:29 2001 UTC (8 years, 2 months ago) by wrowe
Original Path: httpd/httpd/trunk/server/config.c
File length: 56380 byte(s)
Diff to previous 90571 (colored)
  AFAICT, we have never created server configs of _all_ modules for _all_
  contexts, only when they come up (e.g., a directive of that particular
  module is provided) with the except that vhost containers complete the
  initialization of all modules.  I haven't stepped this, but it appears
  to be correct.

  This patch assures we can merge two incomplete directory sections
  together.  They will (obviously) need to be merged with a LHS default,
  e.g. a vhost's or main server's default dir config.  That's fine, this
  just allows either the LHS or RHS value to be null, and for merging to
  still succeed.

Reported by:  Sander Striker <striker@apache.org>
Additional Analysis:  Doug MacEachern

Revision 90571 - (view) (annotate) - [select for diffs]
Modified Thu Aug 23 19:13:53 2001 UTC (8 years, 3 months ago) by wrowe
Original Path: httpd/httpd/trunk/server/config.c
File length: 56362 byte(s)
Diff to previous 90090 (colored)
  Overhauled ap_server_root_relative, so that it now changes any path
  to canonical form through apr.  Also assures that a change to the
  ServerRoot through a -C option takes effect before locating the
  httpd.conf file.

Revision 90090 - (view) (annotate) - [select for diffs]
Modified Sat Aug 11 04:04:13 2001 UTC (8 years, 3 months ago) by rbb
Original Path: httpd/httpd/trunk/server/config.c
File length: 56134 byte(s)
Diff to previous 89896 (colored)
Fix the new method code.  We need to cast 1 to an apr_int64_t or it will
be treated as a 32-bit integer, and it will wrap after being shifted
32 times.
Submitted by:	Cody Sherr <csherr@covalent.net> and
		Ryan Morgan <rmorgan@covalent.net>

Revision 89896 - (view) (annotate) - [select for diffs]
Modified Fri Aug 3 00:59:01 2001 UTC (8 years, 3 months ago) by wrowe
Original Path: httpd/httpd/trunk/server/config.c
File length: 56120 byte(s)
Diff to previous 89869 (colored)
  Provide an ap_set_deprecated() fn for quick-and-dirty 'we don't do this'
  entries in the command table.

  (Also fixes a nit about returning a single bit of an apr_int_64 as an int.
  Know how this group loves !! expresssions :)

Revision 89869 - (view) (annotate) - [select for diffs]
Modified Thu Aug 2 04:25:20 2001 UTC (8 years, 3 months ago) by rbb
Original Path: httpd/httpd/trunk/server/config.c
File length: 55929 byte(s)
Diff to previous 89496 (colored)
Add the ability to extend the methods that Apache understands
and have those methods <limit>able in the httpd.conf. It uses
the same bit mask/shifted offset as the original HTTP methods
such as M_GET or M_POST, but expands the total bits from an int to
an ap_int64_t to handle more bits for new request methods than
an int provides.
Submitted by:	Cody Sherr <csherr@covalent.net>

Revision 89496 - (view) (annotate) - [select for diffs]
Modified Wed Jul 4 03:16:33 2001 UTC (8 years, 4 months ago) by dreid
Original Path: httpd/httpd/trunk/server/config.c
File length: 56241 byte(s)
Diff to previous 89091 (colored)
Having gone through and expnaded out the hook macro it seemed a waste
to throw it away, so here it is added as comments for people who are
in the same place I was trying to debug what was going on inside a hook.

Revision 89091 - (view) (annotate) - [select for diffs]
Modified Fri May 11 23:33:46 2001 UTC (8 years, 6 months ago) by rbb
Original Path: httpd/httpd/trunk/server/config.c
File length: 54517 byte(s)
Diff to previous 89089 (colored)
Cleanup the reporting of incorrect end tags for container directives.
PR:	7617
Submitted by:	Barrie Slaymaker <barries@slaysys.com>

Revision 89089 - (view) (annotate) - [select for diffs]
Modified Fri May 11 18:37:41 2001 UTC (8 years, 6 months ago) by orlikowski
Original Path: httpd/httpd/trunk/server/config.c
File length: 54356 byte(s)
Diff to previous 89078 (colored)
More changes based on Ian's patch.

Revision 89078 - (view) (annotate) - [select for diffs]
Modified Fri May 11 04:35:41 2001 UTC (8 years, 6 months ago) by chuck
Original Path: httpd/httpd/trunk/server/config.c
File length: 54206 byte(s)
Diff to previous 88905 (colored)
Add the AP_DECLARE()/AP_CORE_DECLARE macros on the return types of
functions used by mod_proxy for export in DLL
Submitted by:	Ian Holsman <IanH@cnet.com>
Reviewed by:	Chuck murcko

Revision 88905 - (view) (annotate) - [select for diffs]
Modified Fri Apr 20 19:11:21 2001 UTC (8 years, 7 months ago) by stoddard
Original Path: httpd/httpd/trunk/server/config.c
File length: 54189 byte(s)
Diff to previous 88902 (colored)
struct_ptr is a void*.  The Windows compiler doesn't like it when you try
to do pointer math on a void*.

Revision 88902 - (view) (annotate) - [select for diffs]
Modified Fri Apr 20 16:43:39 2001 UTC (8 years, 7 months ago) by dougm
Original Path: httpd/httpd/trunk/server/config.c
File length: 54182 byte(s)
Diff to previous 88851 (colored)
Add ap_set_int_slot() function
PR:
Obtained from:
Submitted by:	John K. Sterling <sterling@covalent.net>
Reviewed by:	dougm

Revision 88851 - (view) (annotate) - [select for diffs]
Modified Fri Apr 13 19:00:39 2001 UTC (8 years, 7 months ago) by rbb
Original Path: httpd/httpd/trunk/server/config.c
File length: 53587 byte(s)
Diff to previous 88803 (colored)
Add more options to the ap_mpm_query function.  This also allows MPMs to
report if their threads are dynamic or static.  Finally, this also
implements a new API, ap_show_mpm, which returns the MPM that was
required into the core.

We tried to make all of the MPMs report their threading capabilities
correctly, but each MPM expert should double check us.

Submitted by:	Harrie Hazewinkel <harrie@covalent.net>

Revision 88803 - (view) (annotate) - [select for diffs]
Modified Tue Apr 10 23:18:27 2001 UTC (8 years, 7 months ago) by orlikowski
Original Path: httpd/httpd/trunk/server/config.c
File length: 53502 byte(s)
Diff to previous 88649 (colored)
Small docco fix.

Revision 88649 - (view) (annotate) - [select for diffs]
Modified Mon Apr 2 17:08:03 2001 UTC (8 years, 7 months ago) by trawick
Original Path: httpd/httpd/trunk/server/config.c
File length: 53502 byte(s)
Diff to previous 88596 (colored)
Fix segfaults for configuration file syntax errors such as
"<Directory>" followed by "</Directory" and "<Directory>" followed
by "</Directoryz>"

Revision 88596 - (view) (annotate) - [select for diffs]
Modified Tue Mar 27 19:19:08 2001 UTC (8 years, 8 months ago) by stoddard
Original Path: httpd/httpd/trunk/server/config.c
File length: 53408 byte(s)
Diff to previous 88582 (colored)
Performance: Add quick_handler hook. This hook is called at the
very beginning of the request processing before location_walk,
translate_name, etc.  This hook is useful for URI keyed content
caches like Mike Abbott's Quick Shortcut Cache.

Revision 88582 - (view) (annotate) - [select for diffs]
Modified Mon Mar 26 15:39:52 2001 UTC (8 years, 8 months ago) by dougm
Original Path: httpd/httpd/trunk/server/config.c
File length: 53279 byte(s)
Diff to previous 88461 (colored)
top_module global variable renamed to ap_top_module

Revision 88461 - (view) (annotate) - [select for diffs]
Modified Tue Mar 6 21:46:12 2001 UTC (8 years, 8 months ago) by trawick
Original Path: httpd/httpd/trunk/server/config.c
File length: 53237 byte(s)
Diff to previous 88445 (colored)
Report unbounded containers in the config file.  Previously, a typo
in the </container> directive could result in the rest of the config
file being silently ignored, with undesired defaults used.

Revision 88445 - (view) (annotate) - [select for diffs]
Modified Sat Mar 3 02:13:49 2001 UTC (8 years, 8 months ago) by trawick
Original Path: httpd/httpd/trunk/server/config.c
File length: 52963 byte(s)
Diff to previous 88312 (colored)
Use a proper prototype for ap_show_directives() and ap_show_modules() so
that they match their prototypes in http_config.h.

PR:			6980

Revision 88312 - (view) (annotate) - [select for diffs]
Modified Sun Feb 25 00:51:32 2001 UTC (8 years, 9 months ago) by wrowe
Original Path: httpd/httpd/trunk/server/config.c
File length: 52955 byte(s)
Diff to previous 88291 (colored)
  Clean up namespace badness with s/configfile_t/ap_configfile_t/

Revision 88291 - (view) (annotate) - [select for diffs]
Modified Fri Feb 23 18:17:19 2001 UTC (8 years, 9 months ago) by dougm
Original Path: httpd/httpd/trunk/server/config.c
File length: 52949 byte(s)
Diff to previous 88272 (colored)
remove ap_{post_config,child_init}_hook
replace usage with ap_run_{post_config,child_init}
PR:
Obtained from:
Submitted by:
Reviewed by:

Revision 88272 - (view) (annotate) - [select for diffs]
Modified Thu Feb 22 08:15:49 2001 UTC (8 years, 9 months ago) by dougm
Original Path: httpd/httpd/trunk/server/config.c
File length: 53322 byte(s)
Diff to previous 88227 (colored)
avoid c++ keywords

Revision 88227 - (view) (annotate) - [select for diffs]
Modified Sun Feb 18 04:26:13 2001 UTC (8 years, 9 months ago) by gstein
Original Path: httpd/httpd/trunk/server/config.c
File length: 53312 byte(s)
Diff to previous 88225 (colored)
- more ap_conf_vector_t fixup.
- break out the cmd_parms to ap_set_config_vectors to clarify/doc what is
  happening in there and because the function operates independent of cmds.

Revision 88225 - (view) (annotate) - [select for diffs]
Modified Sun Feb 18 02:58:53 2001 UTC (8 years, 9 months ago) by gstein
Original Path: httpd/httpd/trunk/server/config.c
File length: 52606 byte(s)
Diff to previous 88184 (colored)
*) Introduce "ap_conf_vector_t" type to assist with legibility and provide
   some type safety. (unfortunately, our old "void*" is type-safe with the
   new one, but over time we should be better)

*) Propagate the new type to all appropriate functions.

*) Random cleaning, whitespace, stylistic nits.

Revision 88184 - (view) (annotate) - [select for diffs]
Modified Fri Feb 16 04:26:53 2001 UTC (8 years, 9 months ago) by fielding
Original Path: httpd/httpd/trunk/server/config.c
File length: 52394 byte(s)
Diff to previous 88061 (colored)
Update copyright to 2001

Revision 88061 - (view) (annotate) - [select for diffs]
Modified Sat Feb 10 14:04:21 2001 UTC (8 years, 9 months ago) by gstein
Original Path: httpd/httpd/trunk/server/config.c
File length: 52389 byte(s)
Diff to previous 88019 (colored)
*) continued header revamping
*) torch some headers (and some libs) from the autoconf stuff

Revision 88019 - (view) (annotate) - [select for diffs]
Modified Thu Feb 8 07:45:33 2001 UTC (8 years, 9 months ago) by dougm
Original Path: httpd/httpd/trunk/server/config.c
File length: 52469 byte(s)
Diff to previous 87911 (colored)
renaming various functions for consistency sake
see: http://apr.apache.org/~dougm/apr_rename.pl
PR:
Obtained from:
Submitted by:
Reviewed by:

Revision 87911 - (view) (annotate) - [select for diffs]
Modified Mon Jan 29 22:19:17 2001 UTC (8 years, 9 months ago) by gregames
Original Path: httpd/httpd/trunk/server/config.c
File length: 52458 byte(s)
Diff to previous 87873 (colored)
back out recent breakage.  If the lstat isn't executed, finfo isn't
initialized, and the code was looking at random garbage.

This gets the server a little closer to starting on apache.org.  There's still
an issue with mod_include not resolving apr_get_username when it's dynamically
loaded.

Submitted by:	Jeff Trawick

Revision 87873 - (view) (annotate) - [select for diffs]
Modified Sat Jan 27 21:28:28 2001 UTC (8 years, 10 months ago) by wrowe
Original Path: httpd/httpd/trunk/server/config.c
File length: 52487 byte(s)
Diff to previous 87868 (colored)
  Use the appropriate APR_FINFO_flags for the apr_stat/lstat/getfileinfo
  calls to avoid ownership and permissions on Win32 when they are not
  required, and until they are implemented.

Revision 87868 - (view) (annotate) - [select for diffs]
Modified Sat Jan 27 17:50:47 2001 UTC (8 years, 10 months ago) by ben
Original Path: httpd/httpd/trunk/server/config.c
File length: 52456 byte(s)
Diff to previous 87822 (colored)
Add support for type-safe optional functions.

Revision 87822 - (view) (annotate) - [select for diffs]
Modified Wed Jan 24 22:52:52 2001 UTC (8 years, 10 months ago) by ben
Original Path: httpd/httpd/trunk/server/config.c
File length: 52356 byte(s)
Diff to previous 87790 (colored)
The current hooking module is _not_ a debugging aid.

Revision 87790 - (view) (annotate) - [select for diffs]
Modified Tue Jan 23 04:14:24 2001 UTC (8 years, 10 months ago) by wrowe
Original Path: httpd/httpd/trunk/server/config.c
File length: 52351 byte(s)
Diff to previous 87784 (colored)
  Accomodate the change to the apr_read_dir() arguments, and change all
  apr_dirfoo() and apr_foodir() commands to apr_dir_foo() to match the
  earlier-renamed apr_dir_open().

Revision 87784 - (view) (annotate) - [select for diffs]
Modified Sun Jan 21 22:14:16 2001 UTC (8 years, 10 months ago) by rbb
Original Path: httpd/httpd/trunk/server/config.c
File length: 52346 byte(s)
Diff to previous 87774 (colored)
Remove AddModule and ClearModuleList.  Neither directive really makes
much sense anymore, since we use the hooks to order modules correctly.
This also removes the possability that one module will ever register the
same function for the same hook twice.

Revision 87774 - (view) (annotate) - [select for diffs]
Modified Sun Jan 21 05:21:32 2001 UTC (8 years, 10 months ago) by rbb
Original Path: httpd/httpd/trunk/server/config.c
File length: 52731 byte(s)
Diff to previous 87760 (colored)
Add a call to apr_hook_deregister_all() in the clear_module_list function.
The basic problem was that when we load the modules, we call the
register_hooks() function from the module, but then we clear the module
list for all active modules, and add them back in one at a time.  When we
add them back, we re-call the register_hooks() function, thus adding
each function a second time.  This was causing apache.org to log every
request twice in the access log.  By calling apr_hook_deregister_all()
when we unload the module, the second call to register the hooks is the
only call that matters.

Revision 87760 - (view) (annotate) - [select for diffs]
Modified Sat Jan 20 21:42:23 2001 UTC (8 years, 10 months ago) by wrowe
Original Path: httpd/httpd/trunk/server/config.c
File length: 52699 byte(s)
Diff to previous 87734 (colored)
  The changes required for the APR_FINFO_wanted argument to
  apr_stat/lstat/getfileinfo.  These are -NOT- optimal, they
  are simply the required changes to get the server working.
  The size of the patch is a warning about how we need to
  really look at what we are trying to accomplish with all
  of these stat/lstat calls.

Revision 87734 - (view) (annotate) - [select for diffs]
Modified Fri Jan 19 13:43:39 2001 UTC (8 years, 10 months ago) by wrowe
Original Path: httpd/httpd/trunk/server/config.c
File length: 52688 byte(s)
Diff to previous 87731 (colored)
  The only symbol dropped, not counting regcomp regerror regexec regfree
  which aren't namespace protected in the first place.

Revision 87731 - (view) (annotate) - [select for diffs]
Modified Fri Jan 19 07:04:36 2001 UTC (8 years, 10 months ago) by wrowe
Original Path: httpd/httpd/trunk/server/config.c
File length: 52631 byte(s)
Diff to previous 87699 (colored)
  The big change.  This is part 3 of the apr-util symbols rename, please
  see the first commit of srclib/apr-util/include (cvs apr-util/include)
  for the quick glance at symbols changed.

Revision 87699 - (view) (annotate) - [select for diffs]
Modified Wed Jan 17 22:04:45 2001 UTC (8 years, 10 months ago) by wrowe
Original Path: httpd/httpd/trunk/server/config.c
File length: 52625 byte(s)
Diff to previous 87620 (colored)
  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.

  This needs further review, it's committed only as a stopgap for those
  who's builds I broke, sorry.  Review tbc late this evening.

Revision 87620 - (view) (annotate) - [select for diffs]
Modified Tue Jan 9 00:27:03 2001 UTC (8 years, 10 months ago) by trawick
Original Path: httpd/httpd/trunk/server/config.c
File length: 52495 byte(s)
Diff to previous 87617 (colored)
get rid of some bogus uses of perror()

Revision 87617 - (view) (annotate) - [select for diffs]
Modified Mon Jan 8 23:55:12 2001 UTC (8 years, 10 months ago) by dougm
Original Path: httpd/httpd/trunk/server/config.c
File length: 52359 byte(s)
Diff to previous 87608 (colored)
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:

Revision 87608 - (view) (annotate) - [select for diffs]
Modified Sun Jan 7 23:04:15 2001 UTC (8 years, 10 months ago) by ben
Original Path: httpd/httpd/trunk/server/config.c
File length: 52339 byte(s)
Diff to previous 87607 (colored)
Keep Greg happy.

Revision 87607 - (view) (annotate) - [select for diffs]
Modified Sun Jan 7 22:45:26 2001 UTC (8 years, 10 months ago) by ben
Original Path: httpd/httpd/trunk/server/config.c
File length: 52349 byte(s)
Diff to previous 87604 (colored)
Strip trailing stuff from mime types.

Revision 87604 - (view) (annotate) - [select for diffs]
Modified Sun Jan 7 19:55:59 2001 UTC (8 years, 10 months ago) by ben
Original Path: httpd/httpd/trunk/server/config.c
File length: 52351 byte(s)
Diff to previous 87593 (colored)
Make handlers use hooks.

Revision 87593 - (view) (annotate) - [select for diffs]
Modified Fri Jan 5 20:44:44 2001 UTC (8 years, 10 months ago) by ake
Original Path: httpd/httpd/trunk/server/config.c
File length: 54658 byte(s)
Diff to previous 87592 (colored)
add pool parameter to ap_is_directory and ap_is_rdirectory

Revision 87592 - (view) (annotate) - [select for diffs]
Modified Fri Jan 5 19:40:05 2001 UTC (8 years, 10 months ago) by rbb
Original Path: httpd/httpd/trunk/server/config.c
File length: 54651 byte(s)
Diff to previous 87568 (colored)
Stop copying file names that we get from apr_file_t's and apr_dir_t's.
We copy the data when we store it in the structures, we can just return
a pointer from there, and use const data.  This puts the onus back on
Apache to copy the data if it needs to modify it.

Revision 87568 - (view) (annotate) - [select for diffs]
Modified Tue Jan 2 17:41:38 2001 UTC (8 years, 10 months ago) by ben
Original Path: httpd/httpd/trunk/server/config.c
File length: 54645 byte(s)
Diff to previous 87562 (colored)
Generic hooks (and a demo content filter module).

Revision 87562 - (view) (annotate) - [select for diffs]
Modified Mon Jan 1 00:13:41 2001 UTC (8 years, 10 months ago) by rbb
Original Path: httpd/httpd/trunk/server/config.c
File length: 54640 byte(s)
Diff to previous 87385 (colored)
When we are starting the server, we have a pool that can be used to open
the error log.  Rather than try to log a regular error, log an error with
the pool that we have, so that we can open stderr successfully.

Revision 87385 - (view) (annotate) - [select for diffs]
Modified Sun Dec 17 03:35:39 2000 UTC (8 years, 11 months ago) by rbb
Original Path: httpd/httpd/trunk/server/config.c
File length: 54644 byte(s)
Diff to previous 87363 (colored)
Rename the apr_opendir symbol to apr_dir_open.  This makes more sense,
and the rename was proposed a while ago inside of APR.

Revision 87363 - (view) (annotate) - [select for diffs]
Modified Fri Dec 15 19:20:12 2000 UTC (8 years, 11 months ago) by trawick
Original Path: httpd/httpd/trunk/server/config.c
File length: 54643 byte(s)
Diff to previous 87080 (colored)
move closer to IPv6 support by changing the server_addr_rec
representation of the bound address to something which handles
IPv6; this also allows us to switch to APR resolver routines
in places instead of calling gethostbyname() and gethostbyaddr()
directly

Issues remaining with this set of changes:

1) apr_snprintf()'s %pA formatting needs to change to take
   apr_sockaddr_t * instead of sockaddr_in * -OR- just get rid
   of that type of formatting
2) apr_get_inaddr() is no longer used and should be removed

Revision 87080 - (view) (annotate) - [select for diffs]
Modified Sun Nov 26 04:47:43 2000 UTC (9 years ago) by gstein
Original Path: httpd/httpd/trunk/server/config.c
File length: 54507 byte(s)
Diff to previous 87009 (colored)
*) Compensate for recent changes in the APR headers. Specifically, some
   files need to specifically include stdio.h, or a particular apr_*.h
   header.

*) Adjust callers of apr_create_process() to deal with the extra "const"

*) Add "const" to args of ap_os_create_privileged_process()

Revision 87009 - (view) (annotate) - [select for diffs]
Modified Sat Nov 18 15:00:39 2000 UTC (9 years ago) by wrowe
Original Path: httpd/httpd/trunk/server/config.c
File length: 54441 byte(s)
Diff to previous 86948 (colored)
  Extern symbols (per the warning) belong elsewhere, since (on Win32) the
  http_main.c is both the startup and entry stub.

Revision 86948 - (view) (annotate) - [select for diffs]
Modified Tue Nov 14 01:55:26 2000 UTC (9 years ago) by rbb
Original Path: httpd/httpd/trunk/server/config.c
File length: 54395 byte(s)
Diff to previous 86804 (colored)
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

Revision 86804 - (view) (annotate) - [select for diffs]
Modified Thu Nov 2 20:05:00 2000 UTC (9 years ago) by wrowe
Original Path: httpd/httpd/trunk/server/config.c
File length: 54395 byte(s)
Diff to previous 86797 (colored)
  Solve the os_is_absolute_path problem for the moment.

  This is -not- the permanent patch for 2.0, simply a placeholder till we
  have the canonical name implemented in APR for good.

Revision 86797 - (view) (annotate) - [select for diffs]
Modified Thu Nov 2 04:46:42 2000 UTC (9 years ago) by wrowe
Original Path: httpd/httpd/trunk/server/config.c
File length: 54311 byte(s)
Diff to previous 86768 (colored)
  Get Win32 building again.

Submitted by:	John Sterling <sterling@covalent.net>
Reviewed by:	wrowe

Revision 86768 - (view) (annotate) - [select for diffs]
Modified Mon Oct 30 20:13:04 2000 UTC (9 years ago) by rbb
Original Path: httpd/httpd/trunk/server/config.c
File length: 54252 byte(s)
Diff to previous 86712 (colored)
Make mod_auth_db compile cleanly in 2.0

Revision 86712 - (view) (annotate) - [select for diffs]
Modified Mon Oct 23 15:30:57 2000 UTC (9 years, 1 month ago) by manoj
Original Path: httpd/httpd/trunk/server/config.c
File length: 54252 byte(s)
Diff to previous 86609 (colored)
Add back suexec support.

Revision 86609 - (view) (annotate) - [select for diffs]
Modified Mon Oct 16 06:05:15 2000 UTC (9 years, 1 month ago) by wrowe
Original Path: httpd/httpd/trunk/server/config.c
File length: 54331 byte(s)
Diff to previous 86409 (colored)
  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.

Revision 86409 - (view) (annotate) - [select for diffs]
Modified Thu Oct 5 22:35:08 2000 UTC (9 years, 1 month ago) by jim
Original Path: httpd/httpd/trunk/server/config.c
File length: 54304 byte(s)
Diff to previous 86405 (colored)
Port over the config directory stuff...

Revision 86405 - (view) (annotate) - [select for diffs]
Modified Thu Oct 5 17:33:14 2000 UTC (9 years, 1 month ago) by wrowe
Original Path: httpd/httpd/trunk/server/config.c
File length: 52398 byte(s)
Diff to previous 86265 (colored)
  The lots of little ones... APR_IS_STATUS_condition(rv) conditional macros
  replacing the majority of fallible rv == APR_condition tests.  But there
  are lots more to fix, these are the obvious ones that already did proper
  canonical error conversion.

Revision 86265 - (view) (annotate) - [select for diffs]
Modified Wed Sep 20 17:35:59 2000 UTC (9 years, 2 months ago) by trawick
Original Path: httpd/httpd/trunk/server/config.c
File length: 52431 byte(s)
Diff to previous 86233 (colored)
Avoid a segfault when parsing .htaccess files.  An
uninitialized tree pointer was passed to ap_build_config().

Revision 86233 - (view) (annotate) - [select for diffs]
Modified Fri Sep 15 16:50:39 2000 UTC (9 years, 2 months ago) by trawick
Original Path: httpd/httpd/trunk/server/config.c
File length: 52424 byte(s)
Diff to previous 86070 (colored)
Fix a bug parsing configuration file containers.  With a sequence
like this in the config file

       <IfModule mod_kilroy.c>
       any stuff
       </IfModule>
       <IfModule mod_lovejoy.c>
       (blank line)
       any stuff
       </IfModule>

the second container would be terminated at the blank line due to
sediment in the buffer from reading the prior </IfModule> and an
error message would be generated for the real </IfModule> for the
second container.  Also due to this problem, any two characters
could be used for "</" in the close of a container.

Revision 86070 - (view) (annotate) - [select for diffs]
Modified Mon Aug 14 03:07:58 2000 UTC (9 years, 3 months ago) by rbb
Original Path: httpd/httpd/trunk/server/config.c
File length: 52388 byte(s)
Diff to previous 86053 (colored)
Remove a bunch of warnings from the server when compiled using
--with-maintainer-mode

Revision 86053 - (view) (annotate) - [select for diffs]
Modified Fri Aug 11 23:41:53 2000 UTC (9 years, 3 months ago) by coar
Original Path: httpd/httpd/trunk/server/config.c
File length: 52361 byte(s)
Diff to previous 85993 (colored)
	Preset the cmd_parms->limited field to the magic 'no limit active'
	value, and add some prototype API routines for expanding support
	for arbitrary extension HTTP methods.

Revision 85993 - (view) (annotate) - [select for diffs]
Modified Fri Aug 4 23:22:57 2000 UTC (9 years, 3 months ago) by trawick
Original Path: httpd/httpd/trunk/server/config.c
File length: 51701 byte(s)
Diff to previous 85976 (colored)
Fix a config tree problem.

The following configuration file demonstrates the problem:

<IfModule mod_rewrite.c>
RewriteEngine on
RewriteMap    quux-map       prg:/tmp/apache-2.0/map.quux.pl
RewriteRule   ^/~quux/(.*)$  /~quux/${quux-map:$1}
</IfModule>

After this config file is parsed, the only statement in the config
tree is the last statement in the IfModule container ("RewriteRule blah
blah").

The problem is that when ap_build_config_sub() handles this type of
construct, it moves *current to the end of the list before returning.
If this construct were the first thing in the file, the caller would
set conftree to *current, not realizing that there were list elements
before *current.  The caller doesn't have addressability to those list
elements.

With this change, ap_build_config_sub() sets *conftree before
walking *current to the end of the list.

Revision 85976 - (view) (annotate) - [select for diffs]
Modified Wed Aug 2 05:27:38 2000 UTC (9 years, 3 months ago) by dougm
Original Path: httpd/httpd/trunk/server/config.c
File length: 51375 byte(s)
Diff to previous 85878 (colored)
prefix libapr functions and types with apr_

Revision 85878 - (view) (annotate) - [select for diffs]
Modified Tue Jul 25 01:06:32 2000 UTC (9 years, 4 months ago) by wrowe
Original Path: httpd/httpd/trunk/server/config.c
File length: 51274 byte(s)
Diff to previous 85867 (colored)
  Add APR_EOL_STR for a platform specific text delimiter, provided by
  apr.h (defined in apr.h.in and apr.hw).  This is needed -only- in APR
  created files (true raw files) such as logs.  It is not required in any
  splat to screen (stderr/stdout) formatting, nor any html markup.

  Some other modules slipped through in the prior apr_strings.h commit.
  Sorry 'bout that.

PR:
Obtained from:
Submitted by:
Reviewed by:

Revision 85867 - (view) (annotate) - [select for diffs]
Modified Fri Jul 21 19:50:58 2000 UTC (9 years, 4 months ago) by rbb
Original Path: httpd/httpd/trunk/server/config.c
File length: 51232 byte(s)
Diff to previous 85723 (colored)
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.

Revision 85723 - (view) (annotate) - [select for diffs]
Modified Wed Jun 28 14:33:48 2000 UTC (9 years, 5 months ago) by trawick
Original Path: httpd/httpd/trunk/server/config.c
File length: 51207 byte(s)
Diff to previous 85692 (colored)
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

Revision 85692 - (view) (annotate) - [select for diffs]
Modified Sun Jun 25 22:50:10 2000 UTC (9 years, 5 months ago) by dougm
Original Path: httpd/httpd/trunk/server/config.c
File length: 51157 byte(s)
Diff to previous 85681 (colored)
parms needs err_directive incase execute_now() returns non-NULL (e.g. if LoadModule fails)

Revision 85681 - (view) (annotate) - [select for diffs]
Modified Sat Jun 24 02:01:28 2000 UTC (9 years, 5 months ago) by trawick
Original Path: httpd/httpd/trunk/server/config.c
File length: 51114 byte(s)
Diff to previous 85609 (colored)
OS/390 needs arpa/inet.h for htonl().
Submitted by:	Greg Ames

Revision 85609 - (view) (annotate) - [select for diffs]
Modified Sun Jun 18 13:33:29 2000 UTC (9 years, 5 months ago) by trawick
Original Path: httpd/httpd/trunk/server/config.c
File length: 51060 byte(s)
Diff to previous 85604 (colored)
Use the new command-handler initializer macros in mod_auth;
clean up the resulting warnings.

Revision 85604 - (view) (annotate) - [select for diffs]
Modified Sat Jun 17 21:37:05 2000 UTC (9 years, 5 months ago) by ben
Original Path: httpd/httpd/trunk/server/config.c
File length: 50896 byte(s)
Diff to previous 85599 (colored)
More command handlers.

Revision 85599 - (view) (annotate) - [select for diffs]
Modified Sat Jun 17 16:29:53 2000 UTC (9 years, 5 months ago) by ben
Original Path: httpd/httpd/trunk/server/config.c
File length: 50829 byte(s)
Diff to previous 85595 (colored)
More consification, correct command initialisation.

Revision 85595 - (view) (annotate) - [select for diffs]
Modified Sat Jun 17 11:13:05 2000 UTC (9 years, 5 months ago) by ben
Original Path: httpd/httpd/trunk/server/config.c
File length: 50797 byte(s)
Diff to previous 85585 (colored)
Command handler revamp. Note that this makes the code produce a LOT of
warnings!

Revision 85585 - (view) (annotate) - [select for diffs]
Modified Fri Jun 16 12:00:58 2000 UTC (9 years, 5 months ago) by trawick
Original Path: httpd/httpd/trunk/server/config.c
File length: 51603 byte(s)
Diff to previous 85522 (colored)
Fix segfault when reporting this type of syntax error:
"</container> without matching <container> section", where
container is VirtualHost or Directory or whatever.

This was a path not covered by the fix in 2.0a4 to report
the proper line numbers (sorry!).

Revision 85522 - (view) (annotate) - [select for diffs]
Modified Sun Jun 11 22:06:57 2000 UTC (9 years, 5 months ago) by trawick
Original Path: httpd/httpd/trunk/server/config.c
File length: 51560 byte(s)
Diff to previous 85436 (colored)
Fix a couple of problems with the pre/post config processing changes:

1) symptom: on system with bad/no DNS setup, ServerName isn't
   processed so init fails

cause:

  ap_fini_vhost_config() called before ap_process_config_tree(), so
  ServerName was never stored in the config structure

2) symptom: on system with virtual hosts configured, SIGSEGV in
   open_multi_logs()

cause:

   the module configs for the virtual hosts haven't been merged in
   yet, and open_multi_logs() gets NULL for the mod_log_config
   configuration

This stuff needs to be cleaned up further, exploring the use of a
post-config hook for fixup_virtual_hosts(), ap_fini_vhost_config(),
and ap_sort_hooks(), getting a lot of logic out of main(), and
processing the config tree only once.

Revision 85436 - (view) (annotate) - [select for diffs]
Modified Tue Jun 6 01:20:04 2000 UTC (9 years, 5 months ago) by wrowe
Original Path: httpd/httpd/trunk/server/config.c
File length: 51637 byte(s)
Diff to previous 85433 (colored)
PR:
Obtained from:
Submitted by:
Reviewed by:

  Migrate the 'real' pre_config hook update from winnt.c to mpm_winnt.c
  and correct newly required symbols for http_main.c

Revision 85433 - (view) (annotate) - [select for diffs]
Modified Mon Jun 5 23:58:34 2000 UTC (9 years, 5 months ago) by fanf
Original Path: httpd/httpd/trunk/server/config.c
File length: 51615 byte(s)
Diff to previous 85393 (colored)
Remove some #ifdef'ed code that doesn't make much sense
(what does the 2 signify?)

Reviewed by:	Ryan Bloom

Revision 85393 - (view) (annotate) - [select for diffs]
Modified Sat Jun 3 16:27:03 2000 UTC (9 years, 5 months ago) by rbb
Original Path: httpd/httpd/trunk/server/config.c
File length: 52014 byte(s)
Diff to previous 85378 (colored)
Modify the config order so that we read the config, process all EXEC_ON_READ
directives at the same time, run pre_config hook for all modules, and
then walk the tree.  This allows all modules to have a pre_config hook and
know that it will be called at a reasonable time.  I also made "Include"
an EXEC_ON_READ directive so that it is included in the tree properly.
This was required after the other changes that were made.

Revision 85378 - (view) (annotate) - [select for diffs]
Modified Fri Jun 2 15:33:20 2000 UTC (9 years, 5 months ago) by rbb
Original Path: httpd/httpd/trunk/server/config.c
File length: 51039 byte(s)
Diff to previous 85353 (colored)
Add pre_config hooks back in for all modules.  This is important for the
server tokens code that is coming soon.

Revision 85353 - (view) (annotate) - [select for diffs]
Modified Tue May 30 15:56:18 2000 UTC (9 years, 5 months ago) by rbb
Original Path: httpd/httpd/trunk/server/config.c
File length: 51109 byte(s)
Diff to previous 85348 (colored)
Forward fit a bug fix in the TAKE13 handling from 1.3 to 2.0
Submitted by:	Jon Travis <jtravis@covalent.net>

Revision 85348 - (view) (annotate) - [select for diffs]
Modified Tue May 30 02:42:32 2000 UTC (9 years, 5 months ago) by trawick
Original Path: httpd/httpd/trunk/server/config.c
File length: 51103 byte(s)
Diff to previous 85326 (colored)
We now report the correct line number for syntax errors in config
files.

Revision 85326 - (view) (annotate) - [select for diffs]
Modified Sun May 28 03:52:42 2000 UTC (9 years, 6 months ago) by wrowe
Original Path: httpd/httpd/trunk/server/config.c
File length: 50583 byte(s)
Diff to previous 85319 (colored)
PR:
Obtained from:
Submitted by:
Reviewed by:

  Finally a patch that can't (well, shouldn't :-) break any other platform.

  Open up the symbols defined for http_main.c to move main() from the core
  under Win32 (that's the real main(), not that apache_main() thing).

  Win32 Project file changes will follow in a seperate patch.

Revision 85319 - (view) (annotate) - [select for diffs]
Modified Sat May 27 22:53:48 2000 UTC (9 years, 6 months ago) by wrowe
Original Path: httpd/httpd/trunk/server/config.c
File length: 50448 byte(s)
Diff to previous 85318 (colored)
PR:
Obtained from:
Submitted by:
Reviewed by:

  Reverse out additional linkage argument from DECLARE_HOOK
  and IMPLEMENT_HOOK macros.

Revision 85318 - (view) (annotate) - [select for diffs]
Modified Sat May 27 22:40:44 2000 UTC (9 years, 6 months ago) by wrowe
Original Path: httpd/httpd/trunk/server/config.c
File length: 50492 byte(s)
Diff to previous 85310 (colored)
PR:
Obtained from:
Submitted by:
Reviewed by:

  Reverse out all _EXPORT_VAR changes back to their original _VAR_EXPORT
  names for linkage (API_, CORE_, and MODULE_).

Revision 85310 - (view) (annotate) - [select for diffs]
Modified Sat May 27 05:31:34 2000 UTC (9 years, 6 months ago) by wrowe
Original Path: httpd/httpd/trunk/server/config.c
File length: 50492 byte(s)
Diff to previous 85309 (colored)
  A really simple change for readability:

    ap_pool_t *g_pHookPool;           becomes ap_global_hook_pool
    int g_bDebugHooks;                becomes ap_debug_module_hooks
    const char *g_szCurrentHookName;  becomes ap_debug_module_name

  Just as a reminder, these are now declared in ap_hooks.c

Revision 85309 - (view) (annotate) - [select for diffs]
Modified Sat May 27 05:28:02 2000 UTC (9 years, 6 months ago) by wrowe
Original Path: httpd/httpd/trunk/server/config.c
File length: 50475 byte(s)
Diff to previous 85269 (colored)
  This patch corrects the issues from the AP_EXPORT and linkage 
  specification arguments to the ap_hooks.h declarations.  As with
  the APR_ and AP_ patches, API_VAR_EXPORT becomes API_EXPORT_VAR,
  and MODULE_VAR_EXPORT becomes MODULE_EXPORT_VAR.

  I will be happy to revert the inclusion of ap_config.h from 
  httpd.h if this bothers anyone.  More individual modules need
  to be patched if we do so.

  The API_EXPORTs all moved into central storage in the ap_config.h
  header.  Without WIN32 or API_STATIC compile time declarations, 
  these macros remain no-ops.

  This patch also moves the following data from http_main to http_config:

    const char *ap_server_argv0;
    const char *ap_server_root;
    ap_array_header_t *ap_server_pre_read_config;
    ap_array_header_t *ap_server_post_read_config;
    ap_array_header_t *ap_server_config_defines;

  And the following variables had already moved into ap_hooks.c:

    ap_pool_t *g_pHookPool;  (initialized now in http_config)
    int g_bDebugHooks;                   (out of http_config)
    const char *g_szCurrentHookName;     (out of http_config)

  The changes to http_main.c are in preparation for that module to
  move out to a seperate .exe for win32.  Other platforms will be
  unaffected, outside of these changes.

Revision 85269 - (view) (annotate) - [select for diffs]
Modified Mon May 22 02:57:44 2000 UTC (9 years, 6 months ago) by rbb
Original Path: httpd/httpd/trunk/server/config.c
File length: 49906 byte(s)
Diff to previous 85259 (colored)
Fix the config parser so that if there is no current node, and we are
evaluating an EXEC_ON_READ directive, and the directive's sub_tree is empty,
we don't try to set the node's parent pointer.  This stops a seg fault.
Submitted by:	Jeff Trawick

Revision 85259 - (view) (annotate) - [select for diffs]
Modified Fri May 19 17:22:47 2000 UTC (9 years, 6 months ago) by rbb
Original Path: httpd/httpd/trunk/server/config.c
File length: 49856 byte(s)
Diff to previous 85233 (colored)
Fix a bug in adding EXEC_ON_READ at the top level of the tree.

Revision 85233 - (view) (annotate) - [select for diffs]
Modified Tue May 16 22:16:51 2000 UTC (9 years, 6 months ago) by rbb
Original Path: httpd/httpd/trunk/server/config.c
File length: 49794 byte(s)
Diff to previous 85217 (colored)
Fix a bug in the EXEC_ON_READ logic.  When we build a sub_tree while
reading that is the first item in a container, we have to return that tree
and set the parent pointers correctly.
Submitted by:	Jeff Trawick
Reviewed by:	Ryan Bloom

Revision 85217 - (view) (annotate) - [select for diffs]
Modified Mon May 15 19:21:40 2000 UTC (9 years, 6 months ago) by rbb
Original Path: httpd/httpd/trunk/server/config.c
File length: 49454 byte(s)
Diff to previous 85172 (colored)
Commit the EXEC_ON_READ changes.  This allows modules to hook into the
config file read phase.  Full details are in the CHANGES file blurb.
Examples to see how this should be used are provided for <IfModule>
<IfDefine> LoadModule, AddModule and ClearModuleList expect docs in the
next day or two.

Revision 85172 - (view) (annotate) - [select for diffs]
Modified Tue May 9 22:46:03 2000 UTC (9 years, 6 months ago) by ake
Original Path: httpd/httpd/trunk/server/config.c
File length: 45897 byte(s)
Diff to previous 85045 (colored)
Get tree build to work correctly with config Include directive

Revision 85045 - (view) (annotate) - [select for diffs]
Modified Wed Apr 26 07:14:39 2000 UTC (9 years, 7 months ago) by dougm
Original Path: httpd/httpd/trunk/server/config.c
File length: 45793 byte(s)
Diff to previous 85025 (colored)
add AP_ prefix to *HOOK* macros

Revision 85025 - (view) (annotate) - [select for diffs]
Modified Mon Apr 24 12:27:02 2000 UTC (9 years, 7 months ago) by gstein
Original Path: httpd/httpd/trunk/server/config.c
File length: 45766 byte(s)
Diff to previous 85024 (colored)
drop the "container" param from ap_walk_config(). callers should simply
    pass the first child, rather than expecting the walker to do it.
remove the nasty "static" variable inside ap_walk_config(). it now walks the
    tree provided with no worries about bumping up/down levels.
minor refactor between ap_walk_config() and ap_walk_config_sub() to clean up
    some logic and clarify the code.

Revision 85024 - (view) (annotate) - [select for diffs]
Modified Mon Apr 24 12:00:43 2000 UTC (9 years, 7 months ago) by gstein
Original Path: httpd/httpd/trunk/server/config.c
File length: 46021 byte(s)
Diff to previous 85023 (colored)
clean up cmd_parms: config_file is no longer valid; end_token is bogus;
    add directive.
move configfile_t and functions from httpd.h to http_config.h
new signature for ap_build_config() (since config_file removed from cmd_parms)
add "data" to ap_directive_t for future use by modules. add filename.
syntax checking for section-close directives: a section-open must exist,
    the section-close must be </FOO>, and the open/close must match.
    the file as a whole must be properly balanced (issue errors for each
    unmatched section-open).
</FOO> command_rec structures are obsolete. Remove from http_core.c.
do not store </FOO> directives in the config tree.
clean out section-close logic from http_core.c (and old, related comments)
<Limit> and <LimitExcept> must walk their children.
new mechanism in ap_check_cmd_context() for testing enclosure in a
    Directory/Location/File: find_parent()
<IfModule> and <IfDefine> must pass cmd->context when walking the children
several places: we had a walk followed by ap_get_module_config(). that
    assumed the walk would create a config that we could fetch, which is not
    true -- it is possible that the children are all from other modules
    (e.g. the <Files> section in httpd.conf-dist has no "core" directives).
    using ap_set_config_vectors() ensures we get a structure, and it returns
    it to us.
    [ note: when we had </Directory> (and friends) in the tree, the config
      would get created; removing the directive removed the config; this
      was a bitch to track down :-) ]

Revision 85023 - (view) (annotate) - [select for diffs]
Modified Mon Apr 24 08:35:56 2000 UTC (9 years, 7 months ago) by gstein
Original Path: httpd/httpd/trunk/server/config.c
File length: 45333 byte(s)
Diff to previous 85015 (colored)
handle error messages during building and processing of the configuration.
add missing return statements, wrap some lines, remove unused vars.
move syntax error reporting and exit(1) back to the right place (to be
    fixed in a future pass; the exit() is inappropriate for parsing
    .htaccess files).

Revision 85015 - (view) (annotate) - [select for diffs]
Modified Sat Apr 22 22:54:30 2000 UTC (9 years, 7 months ago) by rbb
Original Path: httpd/httpd/trunk/server/config.c
File length: 44901 byte(s)
Diff to previous 85000 (colored)
Parse the config tree, instead of the config file.  This is a first step there
are some big improvements to be made to this code, but this works now, and
it is a first step.

Revision 85000 - (view) (annotate) - [select for diffs]
Modified Thu Apr 20 15:20:33 2000 UTC (9 years, 7 months ago) by bjh
Original Path: httpd/httpd/trunk/server/config.c
File length: 43991 byte(s)
Diff to previous 84979 (colored)
Use ap_canonical_error() where appropriate.

Revision 84979 - (view) (annotate) - [select for diffs]
Modified Sun Apr 16 23:28:52 2000 UTC (9 years, 7 months ago) by rbb
Original Path: httpd/httpd/trunk/server/config.c
File length: 43882 byte(s)
Diff to previous 84963 (colored)
Add back in logic to put the ending container directive in the tree.  This
needs to be there until we have a validating tree.  Without this, it is
possible for a config file to read:

<Ifmodule mod_foo.c>
    some directive
</Limit>

and still be read correctly.  When the tree building functions can validate
for us, this should be removed, and there is a comment that says so.

Revision 84963 - (view) (annotate) - [select for diffs]
Modified Fri Apr 14 15:59:20 2000 UTC (9 years, 7 months ago) by rbb
Original Path: httpd/httpd/trunk/server/config.c
File length: 43518 byte(s)
Diff to previous 84961 (colored)
Change ap_context_t to ap_pool_t.  This compiles, runs, and serves pages
on Linux, but probably breaks somewhere.

Revision 84961 - (view) (annotate) - [select for diffs]
Modified Fri Apr 14 02:39:08 2000 UTC (9 years, 7 months ago) by dgaudet
Original Path: httpd/httpd/trunk/server/config.c
File length: 43629 byte(s)
Diff to previous 84949 (colored)
more namespace cleanup

Revision 84949 - (view) (annotate) - [select for diffs]
Modified Wed Apr 12 21:57:48 2000 UTC (9 years, 7 months ago) by rbb
Original Path: httpd/httpd/trunk/server/config.c
File length: 43626 byte(s)
Diff to previous 84878 (colored)
First step to getting configuration modules working.  This step creates
a tree, but does not use the tree for anything.

Revision 84878 - (view) (annotate) - [select for diffs]
Modified Fri Mar 31 08:44:21 2000 UTC (9 years, 7 months ago) by fielding
Original Path: httpd/httpd/trunk/server/config.c
File length: 42900 byte(s)
Diff to previous 84864 (colored)
Update to Apache Software License version 1.1

Revision 84864 - (view) (annotate) - [select for diffs]
Modified Thu Mar 30 18:39:46 2000 UTC (9 years, 7 months ago) by rbb
Original Path: httpd/httpd/trunk/server/config.c
File length: 43045 byte(s)
Diff to previous 84862 (colored)
Fix the warnings associated with the pre_config patch.

Revision 84862 - (view) (annotate) - [select for diffs]
Modified Thu Mar 30 15:30:36 2000 UTC (9 years, 7 months ago) by rbb
Original Path: httpd/httpd/trunk/server/config.c
File length: 43086 byte(s)
Diff to previous 84845 (colored)
Put the pre_config hook back into the table.  This solves the problem of
the pre-config hook only being valid for MPM's.  This patch also
distinguishes between STANDARD modules and MPM's.

Revision 84845 - (view) (annotate) - [select for diffs]
Modified Tue Mar 28 18:36:34 2000 UTC (9 years, 8 months ago) by rbb
Original Path: httpd/httpd/trunk/server/config.c
File length: 42955 byte(s)
Diff to previous 84837 (colored)
Remove the last piece of the layered I/O code.  I don't know why this didn't
get removed with the rest of it.

Revision 84837 - (view) (annotate) - [select for diffs]
Modified Sat Mar 25 15:00:10 2000 UTC (9 years, 8 months ago) by rbb
Original Path: httpd/httpd/trunk/server/config.c
File length: 43166 byte(s)
Diff to previous 84828 (colored)
Enabled layered I/O.  Docs are forthcoming.

Revision 84828 - (view) (annotate) - [select for diffs]
Modified Thu Mar 23 14:48:45 2000 UTC (9 years, 8 months ago) by ake
Original Path: httpd/httpd/trunk/server/config.c
File length: 42888 byte(s)
Diff to previous 84771 (colored)
Clear hook registrations between reads of the config file.
When DSOs are unloaded and re-loaded the old hook pointers may
no longer be valid. This fix eliminates potential segfaults.

Revision 84771 - (view) (annotate) - [select for diffs]
Modified Wed Mar 15 23:18:32 2000 UTC (9 years, 8 months ago) by manoj
Original Path: httpd/httpd/trunk/server/config.c
File length: 42889 byte(s)
Diff to previous 84765 (colored)
Eliminate implicit usage of access.conf and srm.conf.

Revision 84765 - (view) (annotate) - [select for diffs]
Modified Tue Mar 14 14:09:52 2000 UTC (9 years, 8 months ago) by dirkx
Original Path: httpd/httpd/trunk/server/config.c
File length: 43564 byte(s)
Diff to previous 84725 (colored)
Another one in the department of fairly useless patches which
are best described as feature creep. Allows ${ENV} constructs
in the config file. This avoids the need for mod_perl or
m4 cleverness whilst mainting some of the usefullness. It
does not do (of course) multiline things or anything that clever.

Feel free to flame me.

PR:
Obtained from:
Submitted by:
Reviewed by:

Revision 84725 - (view) (annotate) - [select for diffs]
Modified Fri Mar 10 00:07:37 2000 UTC (9 years, 8 months ago) by rbb
Original Path: httpd/httpd/trunk/server/config.c
File length: 43398 byte(s)
Diff to previous 84658 (colored)
Fix all the License issues.  Including:
s/Apache Group/Apache Software Foundation/
s/1999/2000/
s/Sascha's license/ASF license

Revision 84658 - (view) (annotate) - [select for diffs]
Modified Tue Feb 22 16:02:29 2000 UTC (9 years, 9 months ago) by ake
Original Path: httpd/httpd/trunk/server/config.c
File length: 43272 byte(s)
Diff to previous 84531 (colored)
Sort hooks after dynamically loaded modules have registered.

Revision 84531 - (view) (annotate) - [select for diffs]
Modified Fri Jan 28 18:02:29 2000 UTC (9 years, 10 months ago) by rbb
Original Path: httpd/httpd/trunk/server/config.c
File length: 43251 byte(s)
Diff to previous 84493 (colored)
Include ap_config.h before httpd.h, this ensures that AP_USE_HSREGEX is
defined correctly in all C files.

Revision 84493 - (view) (annotate) - [select for diffs]
Modified Wed Jan 19 01:16:31 2000 UTC (9 years, 10 months ago) by rbb
Original Path: httpd/httpd/trunk/server/config.c
File length: 43251 byte(s)
Diff to previous 84397 (colored)
Finish the commits for the change in the header files.  Basically, this hides
all of the Apache macros that modules don't need access to.  This should
have been committed with the modules, but I wasn't paying attention to the
directory I was in when I ran the commit.
Submitted by:	Manoj Kasichainula and Ryan Bloom

Revision 84397 - (view) (annotate) - [select for diffs]
Modified Thu Jan 6 14:43:41 2000 UTC (9 years, 10 months ago) by rbb
Original Path: httpd/httpd/trunk/server/config.c
File length: 43262 byte(s)
Diff to previous 84393 (colored)
Separate the stat structure from the file structure and use ap_stat and
ap_getfileinfo in apache.

Revision 84393 - (view) (annotate) - [select for diffs]
Modified Tue Jan 4 19:01:04 2000 UTC (9 years, 10 months ago) by rbb
Original Path: httpd/httpd/trunk/server/config.c
File length: 43277 byte(s)
Diff to previous 84281 (colored)
Initialize all ap_file_t's to NULL.  This allows ap_open and ap_stat to
work together without causing memory leaks.

Revision 84281 - (view) (annotate) - [select for diffs]
Modified Sat Dec 11 20:29:17 1999 UTC (9 years, 11 months ago) by rbb
Original Path: httpd/httpd/trunk/server/config.c
File length: 43233 byte(s)
Diff to previous 84134 (colored)
Use ap_open_stderr in http_config.c.  This cleans up some non-portable
code that has been bothering me.

Revision 84134 - (view) (annotate) - [select for diffs]
Modified Thu Nov 18 23:07:53 1999 UTC (10 years ago) by rbb
Original Path: httpd/httpd/trunk/server/config.c
File length: 43260 byte(s)
Diff to previous 84128 (colored)
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.

Revision 84128 - (view) (annotate) - [select for diffs]
Modified Tue Nov 16 18:32:05 1999 UTC (10 years ago) by rbb
Original Path: httpd/httpd/trunk/server/config.c
File length: 42559 byte(s)
Diff to previous 84109 (colored)
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.

Revision 84109 - (view) (annotate) - [select for diffs]
Modified Mon Nov 8 06:05:50 1999 UTC (10 years ago) by bjh
Original Path: httpd/httpd/trunk/server/config.c
File length: 42832 byte(s)
Diff to previous 84091 (colored)
Get rid of a number of 'incompatible pointer type' warnings using
ap_os_{get,put}_file() on platforms who's ap_os_file_t is not an int.

Revision 84091 - (view) (annotate) - [select for diffs]
Modified Tue Nov 2 15:15:08 1999 UTC (10 years ago) by bjh
Original Path: httpd/httpd/trunk/server/config.c
File length: 42823 byte(s)
Diff to previous 84007 (colored)
De-errno ap_pcfg_openfile().

Revision 84007 - (view) (annotate) - [select for diffs]
Modified Wed Oct 20 12:50:12 1999 UTC (10 years, 1 month ago) by rbb
Original Path: httpd/httpd/trunk/server/config.c
File length: 42686 byte(s)
Diff to previous 83968 (colored)
Add a status value to ap_log_error and ap_log_rerror.  This allows us to use
apr_status codes in our error logs.  The main advantage of this, is portable
error codes.  Now, Windows will finally be able to use errno!

Revision 83968 - (view) (annotate) - [select for diffs]
Modified Mon Oct 11 21:54:40 1999 UTC (10 years, 1 month ago) by martin
Original Path: httpd/httpd/trunk/server/config.c
File length: 42670 byte(s)
Diff to previous 83943 (colored)
Typo

Revision 83943 - (view) (annotate) - [select for diffs]
Modified Thu Oct 7 20:48:26 1999 UTC (10 years, 1 month ago) by bhyde
Original Path: httpd/httpd/trunk/server/config.c
File length: 42694 byte(s)
Diff to previous 83942 (colored)
Well this was thought provoking.

Drive out the use of malloc in two places.

In listen.c, using the global process pool instead.  That changes the
API into listen so that a process is passed in rather than the config
pool.  That's all was easy.

The pain is propogating a change into all N of the mpm, they
are all similar but different in their use of listen.c  There
is a lot to dislike about similar but code scattered code.

I changed the N setup_listener routines, they now take only
the server since they can dig the config and global pool
out of there.

Free today: ap_setup_prelinked_modules now takes the process so it
can allocate it's table in the process's pool rathern than use
malloc.

Revision 83942 - (view) (annotate) - [select for diffs]
Modified Thu Oct 7 18:13:17 1999 UTC (10 years, 1 month ago) by bhyde
Original Path: httpd/httpd/trunk/server/config.c
File length: 42657 byte(s)
Diff to previous 83927 (colored)
Add process_rec to the top of {server,connection,request}_rec
hierarchy of structs that abstract server activities.  Store some
stuff in process_rec (finally a place to have nearly guiltless
globals) for example the global and configuration pools.  Put some
operations on process_rec in http_main, in particular the
destroy_and_exit operation, and the use it to do all the exit calls.
Change ap_read_config to operation on this "object" rather than on the
configuration pool.  Modify server_rec to point to the process, so you
can get at it most all the time which should finally allow most of the
server's malloc calls to be eliminated.

There are no locks in the process struct as yet, put them in as needed.
Some of the hooks should take this rather than conf. pool.

Revision 83927 - (view) (annotate) - [select for diffs]
Modified Mon Oct 4 16:38:16 1999 UTC (10 years, 1 month ago) by rbb
Original Path: httpd/httpd/trunk/server/config.c
File length: 42518 byte(s)
Diff to previous 83879 (colored)
First patch to re-order function parameters.  This one gets the low hanging
fruit, and moves most of the result parameters to the first argument.
Future patches in this series will move the rest of the result parameters
to the beginning of the list, and will move the context's to the end of the
list

Revision 83879 - (view) (annotate) - [select for diffs]
Modified Wed Sep 8 14:15:55 1999 UTC (10 years, 2 months ago) by rbb
Original Path: httpd/httpd/trunk/server/config.c
File length: 42518 byte(s)
Diff to previous 83852 (colored)
Remove all of the calls to functions like "ap_popenf".  These functions were
moved down to APR, but they are being removed.  They are not portable, and
were only moved down for backwards compatability.  With this change, they can
be safely removed, which is the next commit on it's way.
Submitted by:  Ryan Bloom and Paul Reder

Revision 83852 - (view) (annotate) - [select for diffs]
Modified Tue Aug 31 05:35:52 1999 UTC (10 years, 2 months ago) by rbb
Original Path: httpd/httpd/trunk/server/config.c
File length: 42438 byte(s)
Diff to previous 83828 (colored)
Changed pools to contexts.  Tested with prefork and pthread mpm's.  I'll
check this out tomorrow and make sure everything was checked in correctly.

Revision 83828 - (view) (annotate) - [select for diffs]
Modified Sat Aug 28 02:34:37 1999 UTC (10 years, 3 months ago) by stoddard
Original Path: httpd/httpd/trunk/server/config.c
File length: 42072 byte(s)
Diff to previous 83825 (colored)
Fix merge bug

Revision 83825 - (view) (annotate) - [select for diffs]
Modified Fri Aug 27 23:47:09 1999 UTC (10 years, 3 months ago) by fielding
Original Path: httpd/httpd/trunk/server/config.c
File length: 42066 byte(s)
Diff to previous 83819 (colored)
Move "handler not found" warning message to below the check
for a wildcard handler.  Gee, you'd think someone would have
fixed it before seven PRs.

PR: 2584, 3349, 3436, 3548, 4384, 4795, 4807
Submitted by: Dirk <dirkm@teleport.com>, Roy Fielding

Revision 83819 - (view) (annotate) - [select for diffs]
Modified Fri Aug 27 22:03:06 1999 UTC (10 years, 3 months ago) by fielding
Original Path: httpd/httpd/trunk/server/config.c
File length: 42052 byte(s)
Diff to previous 83779 (colored)
Reverse the errors from bad merges that were found while
rebuilding the repository.

Revision 83779 - (view) (annotate) - [select for diffs]
Modified Thu Aug 26 16:30:39 1999 UTC (10 years, 3 months ago) by fielding
Original Path: httpd/httpd/trunk/server/config.c
File length: 41897 byte(s)
Diff to previous 83773 (colored)
Odd comments and leftover bits from the pthreads version.
The comments really should be deleted, or at least cleaned up.

Submitted by:	pthreads leftovers

Revision 83773 - (view) (annotate) - [select for diffs]
Modified Thu Aug 26 15:17:10 1999 UTC (10 years, 3 months ago) by fielding
Original Path: httpd/httpd/trunk/server/config.c
File length: 41689 byte(s)
Diff to previous 83770 (colored)
FIXME: These changes are just errors from bad merges in the past.

Revision 83770 - (view) (annotate) - [select for diffs]
Modified Thu Aug 26 14:18:40 1999 UTC (10 years, 3 months ago) by fielding
Original Path: httpd/httpd/trunk/server/config.c
File length: 41844 byte(s)
Diff to previous 83763 (colored)
Start to implement module-defined hooks that are a) fast and b) typesafe.
Replace pre_connection module call with a register_hook call and
implement pre_connection as a hook. The intent is that these hooks will
be extended to allow Apache to be multi-protocol, and also to allow the
calling order to be specified on a per-hook/per-module basis.  [Ben Laurie]

Port a bunch of modules to the new module structure.
["Michael H. Voase" <mvoase@midcoast.com.au>]

Submitted by:	Ben Laurie

Revision 83763 - (view) (annotate) - [select for diffs]
Modified Thu Aug 26 10:45:57 1999 UTC (10 years, 3 months ago) by fielding
Original Path: httpd/httpd/trunk/server/config.c
File length: 46154 byte(s)
Diff to previous 83750 (colored)
Rearchitect the mess in http_main.c, http_core.c and buff.c.
Basic restructuring to introduce the MPM concept; includes various
changes to the module API... better described by docs/initial_blurb.txt.

Created multiple process model (MPM) concept by ripping out the process
guts from http_main.c and http_core.c and moving them to separate files
under src/modules/mpm/

Moved socket creation stuff to listen.c.
Moved connection open, maintenance and close to http_connection.c.

I/O layering and BUFF revamp.  Much of buff.c moved to ap_iol,
iol_socket, and iol_file.  See docs/buff.txt.

Moved user and auth fields from connection_rec to request_rec.
Removed RLIMIT stuff, supposedly to be implemented later in mod_cgi.
Disabled suexec, supposedly to be reimplemented later.

Submitted by:	Dean Gaudet

Revision 83750 - (view) (annotate) - [select for diffs]
Added Tue Aug 24 06:46:03 1999 UTC (10 years, 3 months ago) by fielding
Original Path: httpd/httpd/trunk/server/config.c
File length: 47477 byte(s)
Apache 1.3.9 baseline for the Apache 2.0 repository.

Obtained from: Apache 1.3.9 (minus unused files), tag APACHE_1_3_9
Submitted by: Apache Group

This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, enter a numeric revision.

  Diffs between and
  Type of Diff should be a

apache@apache.org
ViewVC Help
Powered by ViewVC 1.1.2