summaryrefslogtreecommitdiffstats
path: root/server/config.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Renames Pending:Ian Holsman2002-07-061-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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: git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95966 13f79535-47bb-0310-9956-ffa450edef68
* Add a filter_init function to the filters so that a filter can executeJustin Erenkrantz2002-06-281-0/+27
| | | | | | | | | | | | | | | | | | | | 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 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95906 13f79535-47bb-0310-9956-ffa450edef68
* Solve the 80/20 by initializing and storing server_rec->timeout andWilliam A. Rowe Jr2002-06-131-2/+2
| | | | | | | | | | | 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 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95623 13f79535-47bb-0310-9956-ffa450edef68
* A few noops (at the moment.) Prepare for stuffing the directive intoWilliam A. Rowe Jr2002-05-201-3/+8
| | | | | | | the conf tree, without reinvoking the directive, even when EXEC_ON_READ. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95186 13f79535-47bb-0310-9956-ffa450edef68
* stop using APLOG_NOERRNO in calls to ap_log_?error()Jeff Trawick2002-05-171-14/+14
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95149 13f79535-47bb-0310-9956-ffa450edef68
* Add a new parameter to the quick_handler hook to instructBill Stoddard2002-03-271-2/+2
| | | | | | | | | 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. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94240 13f79535-47bb-0310-9956-ffa450edef68
* Eliminate potential ap_server_root_relative segfaults, with the inputWilliam A. Rowe Jr2002-03-161-3/+16
| | | | | | | | | | | 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. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93965 13f79535-47bb-0310-9956-ffa450edef68
* Since noone seemed to have a real problem with it, change !! toSander Striker2002-03-151-1/+1
| | | | | | | something that raises fewer questions. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93949 13f79535-47bb-0310-9956-ffa450edef68
* Update our copyright for this year.Roy T. Fielding2002-03-131-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93918 13f79535-47bb-0310-9956-ffa450edef68
* Sander's Stylistic SubmissionIan Holsman2002-03-051-548/+625
| | | | | | | | | | PR: Obtained from: Submitted by: Reviewed by: git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93716 13f79535-47bb-0310-9956-ffa450edef68
* The pre_config hook now takes a return value. This allows modules toAaron Bannert2002-01-291-2/+2
| | | | | | | cause the server to bail out under error conditions. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93063 13f79535-47bb-0310-9956-ffa450edef68
* Making sure that the global variables have been initialized to avoid linkerBradley Nicholes2002-01-031-4/+4
| | | | | | | | problems at least on NetWare Submitted by: Pavel Novy git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92711 13f79535-47bb-0310-9956-ffa450edef68
* Removed a large (8KB) buffer from the stack in ap_invoke_handler()Brian Pane2001-12-261-5/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92602 13f79535-47bb-0310-9956-ffa450edef68
* Move the insert_filter hook from the prepare request phase to theWilliam A. Rowe Jr2001-12-141-0/+10
| | | | | | | | invoke handler phase, since it can't fail, and contributes nothing to the request 'character', but everything to it's invocation. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92471 13f79535-47bb-0310-9956-ffa450edef68
* Clean up GNU compiler issues on NetWareBradley Nicholes2001-12-111-2/+2
| | | | | | | Submitted by: Pavel Novy git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92429 13f79535-47bb-0310-9956-ffa450edef68
* change open_logs hook to return a value, allowing you to flag a errorIan Holsman2001-11-241-2/+2
| | | | | | | | | while opening logs Obtained from: Doug MacEachern git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92149 13f79535-47bb-0310-9956-ffa450edef68
* Modify post_config hook so that it can return a error,Ian Holsman2001-11-231-4/+4
| | | | | | | | | | | | | | 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) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92144 13f79535-47bb-0310-9956-ffa450edef68
* restructured the conditional logic in ap_merge_per_dir_configs() for faster ↵Brian Pane2001-11-231-5/+11
| | | | | | execution git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92141 13f79535-47bb-0310-9956-ffa450edef68
* Great badness - not a good idea to return OK when you don't modify theWilliam A. Rowe Jr2001-10-071-3/+2
| | | | | | | resulting value, even if it's NULL. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@91345 13f79535-47bb-0310-9956-ffa450edef68
* AFAICT, we have never created server configs of _all_ modules for _all_William A. Rowe Jr2001-09-211-1/+1
| | | | | | | | | | | | | | | | | | | 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 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@91098 13f79535-47bb-0310-9956-ffa450edef68
* Overhauled ap_server_root_relative, so that it now changes any pathWilliam A. Rowe Jr2001-08-231-20/+22
| | | | | | | | | 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. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@90571 13f79535-47bb-0310-9956-ffa450edef68
* Fix the new method code. We need to cast 1 to an apr_int64_t or it willRyan Bloom2001-08-111-1/+1
| | | | | | | | | | 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> git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@90090 13f79535-47bb-0310-9956-ffa450edef68
* Provide an ap_set_deprecated() fn for quick-and-dirty 'we don't do this'William A. Rowe Jr2001-08-031-1/+9
| | | | | | | | | | 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 :) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89896 13f79535-47bb-0310-9956-ffa450edef68
* Add the ability to extend the methods that Apache understandsRyan Bloom2001-08-021-18/+6
| | | | | | | | | | | | 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> git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89869 13f79535-47bb-0310-9956-ffa450edef68
* Having gone through and expnaded out the hook macro it seemed a wasteDavid Reid2001-07-041-8/+60
| | | | | | | | 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. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89496 13f79535-47bb-0310-9956-ffa450edef68
* Cleanup the reporting of incorrect end tags for container directives.Ryan Bloom2001-05-121-0/+7
| | | | | | | | PR: 7617 Submitted by: Barrie Slaymaker <barries@slaysys.com> git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89091 13f79535-47bb-0310-9956-ffa450edef68
* More changes based on Ian's patch.Victor J. Orlikowski2001-05-111-6/+8
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89089 13f79535-47bb-0310-9956-ffa450edef68
* Add the AP_DECLARE()/AP_CORE_DECLARE macros on the return types ofChuck Murcko2001-05-111-1/+1
| | | | | | | | | functions used by mod_proxy for export in DLL Submitted by: Ian Holsman <IanH@cnet.com> Reviewed by: Chuck murcko git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89078 13f79535-47bb-0310-9956-ffa450edef68
* struct_ptr is a void*. The Windows compiler doesn't like it when you tryBill Stoddard2001-04-201-1/+1
| | | | | | | to do pointer math on a void*. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88905 13f79535-47bb-0310-9956-ffa450edef68
* Add ap_set_int_slot() functionDoug MacEachern2001-04-201-0/+19
| | | | | | | | | | PR: Obtained from: Submitted by: John K. Sterling <sterling@covalent.net> Reviewed by: dougm git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88902 13f79535-47bb-0310-9956-ffa450edef68
* Add more options to the ap_mpm_query function. This also allows MPMs toRyan Bloom2001-04-131-0/+5
| | | | | | | | | | | | | | 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> git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88851 13f79535-47bb-0310-9956-ffa450edef68
* Small docco fix.Victor J. Orlikowski2001-04-111-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88803 13f79535-47bb-0310-9956-ffa450edef68
* Fix segfaults for configuration file syntax errors such asJeff Trawick2001-04-021-0/+2
| | | | | | | | "<Directory>" followed by "</Directory" and "<Directory>" followed by "</Directoryz>" git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88649 13f79535-47bb-0310-9956-ffa450edef68
* Performance: Add quick_handler hook. This hook is called at theBill Stoddard2001-03-271-0/+3
| | | | | | | | | 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. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88596 13f79535-47bb-0310-9956-ffa450edef68
* top_module global variable renamed to ap_top_moduleDoug MacEachern2001-03-261-14/+14
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88582 13f79535-47bb-0310-9956-ffa450edef68
* Report unbounded containers in the config file. Previously, a typoJeff Trawick2001-03-061-3/+9
| | | | | | | | in the </container> directive could result in the rest of the config file being silently ignored, with undesired defaults used. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88461 13f79535-47bb-0310-9956-ffa450edef68
* Use a proper prototype for ap_show_directives() and ap_show_modules() soJeff Trawick2001-03-031-2/+2
| | | | | | | | | that they match their prototypes in http_config.h. PR: 6980 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88445 13f79535-47bb-0310-9956-ffa450edef68
* Clean up namespace badness with s/configfile_t/ap_configfile_t/William A. Rowe Jr2001-02-251-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88312 13f79535-47bb-0310-9956-ffa450edef68
* remove ap_{post_config,child_init}_hookDoug MacEachern2001-02-231-13/+0
| | | | | | | | | | | replace usage with ap_run_{post_config,child_init} PR: Obtained from: Submitted by: Reviewed by: git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88291 13f79535-47bb-0310-9956-ffa450edef68
* avoid c++ keywordsDoug MacEachern2001-02-221-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88272 13f79535-47bb-0310-9956-ffa450edef68
* - more ap_conf_vector_t fixup.Greg Stein2001-02-181-17/+28
| | | | | | | | - 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. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88227 13f79535-47bb-0310-9956-ffa450edef68
* *) Introduce "ap_conf_vector_t" type to assist with legibility and provideGreg Stein2001-02-181-47/+41
| | | | | | | | | | | | 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. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88225 13f79535-47bb-0310-9956-ffa450edef68
* Update copyright to 2001Roy T. Fielding2001-02-161-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88184 13f79535-47bb-0310-9956-ffa450edef68
* *) continued header revampingGreg Stein2001-02-101-9/+4
| | | | | | | *) torch some headers (and some libs) from the autoconf stuff git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88061 13f79535-47bb-0310-9956-ffa450edef68
* renaming various functions for consistency sakeDoug MacEachern2001-02-081-6/+6
| | | | | | | | | | | see: http://apr.apache.org/~dougm/apr_rename.pl PR: Obtained from: Submitted by: Reviewed by: git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88019 13f79535-47bb-0310-9956-ffa450edef68
* back out recent breakage. If the lstat isn't executed, finfo isn'tGreg Ames2001-01-291-3/+3
| | | | | | | | | | | | | 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 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87911 13f79535-47bb-0310-9956-ffa450edef68
* Use the appropriate APR_FINFO_flags for the apr_stat/lstat/getfileinfoWilliam A. Rowe Jr2001-01-271-4/+4
| | | | | | | | calls to avoid ownership and permissions on Win32 when they are not required, and until they are implemented. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87873 13f79535-47bb-0310-9956-ffa450edef68
* Add support for type-safe optional functions.Ben Laurie2001-01-271-0/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87868 13f79535-47bb-0310-9956-ffa450edef68
* The current hooking module is _not_ a debugging aid.Ben Laurie2001-01-241-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87822 13f79535-47bb-0310-9956-ffa450edef68
* Accomodate the change to the apr_read_dir() arguments, and change allWilliam A. Rowe Jr2001-01-231-8/+7
| | | | | | | | apr_dirfoo() and apr_foodir() commands to apr_dir_foo() to match the earlier-renamed apr_dir_open(). git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87790 13f79535-47bb-0310-9956-ffa450edef68