summaryrefslogtreecommitdiffstats
path: root/server/config.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Remove AddModule and ClearModuleList. Neither directive really makesRyan Bloom2001-01-211-18/+0
| | | | | | | | | 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. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87784 13f79535-47bb-0310-9956-ffa450edef68
* Add a call to apr_hook_deregister_all() in the clear_module_list function.Ryan Bloom2001-01-211-0/+2
| | | | | | | | | | | | | | 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. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87774 13f79535-47bb-0310-9956-ffa450edef68
* The changes required for the APR_FINFO_wanted argument toWilliam A. Rowe Jr2001-01-201-1/+1
| | | | | | | | | | | 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. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87760 13f79535-47bb-0310-9956-ffa450edef68
* The only symbol dropped, not counting regcomp regerror regexec regfreeWilliam A. Rowe Jr2001-01-191-1/+2
| | | | | | | which aren't namespace protected in the first place. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87734 13f79535-47bb-0310-9956-ffa450edef68
* The big change. This is part 3 of the apr-util symbols rename, pleaseWilliam A. Rowe Jr2001-01-191-11/+11
| | | | | | | | see the first commit of srclib/apr-util/include (cvs apr-util/include) for the quick glance at symbols changed. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87731 13f79535-47bb-0310-9956-ffa450edef68
* Provide apr_pool_t arg to register_hooks, since anything they do in thatWilliam A. Rowe Jr2001-01-171-17/+19
| | | | | | | | | | | 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. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87699 13f79535-47bb-0310-9956-ffa450edef68
* get rid of some bogus uses of perror()Jeff Trawick2001-01-091-4/+7
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87620 13f79535-47bb-0310-9956-ffa450edef68
* adjust remaining modules to use the new handler hook method (Alan Edwards)Doug MacEachern2001-01-091-7/+8
| | | | | | | | | | | bring back the old handler prototype by reusing r->handler (dougm) PR: Obtained from: Submitted by: Reviewed by: git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87617 13f79535-47bb-0310-9956-ffa450edef68
* Keep Greg happy.Ben Laurie2001-01-081-6/+6
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87608 13f79535-47bb-0310-9956-ffa450edef68
* Strip trailing stuff from mime types.Ben Laurie2001-01-071-8/+8
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87607 13f79535-47bb-0310-9956-ffa450edef68
* Make handlers use hooks.Ben Laurie2001-01-071-91/+12
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87604 13f79535-47bb-0310-9956-ffa450edef68
* add pool parameter to ap_is_directory and ap_is_rdirectoryAllan K. Edwards2001-01-051-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87593 13f79535-47bb-0310-9956-ffa450edef68
* Stop copying file names that we get from apr_file_t's and apr_dir_t's.Ryan Bloom2001-01-051-1/+1
| | | | | | | | | 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. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87592 13f79535-47bb-0310-9956-ffa450edef68
* Generic hooks (and a demo content filter module).Ben Laurie2001-01-021-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87568 13f79535-47bb-0310-9956-ffa450edef68
* When we are starting the server, we have a pool that can be used to openRyan Bloom2001-01-011-2/+2
| | | | | | | | 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. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87562 13f79535-47bb-0310-9956-ffa450edef68
* Rename the apr_opendir symbol to apr_dir_open. This makes more sense,Ryan Bloom2000-12-171-1/+1
| | | | | | | and the rename was proposed a while ago inside of APR. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87385 13f79535-47bb-0310-9956-ffa450edef68
* move closer to IPv6 support by changing the server_addr_recJeff Trawick2000-12-151-1/+4
| | | | | | | | | | | | | | | | | 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 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87363 13f79535-47bb-0310-9956-ffa450edef68
* *) Compensate for recent changes in the APR headers. Specifically, someGreg Stein2000-11-261-3/+9
| | | | | | | | | | | | 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() git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87080 13f79535-47bb-0310-9956-ffa450edef68
* Extern symbols (per the warning) belong elsewhere, since (on Win32) theWilliam A. Rowe Jr2000-11-181-0/+2
| | | | | | | http_main.c is both the startup and entry stub. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87009 13f79535-47bb-0310-9956-ffa450edef68
* Port mod_info to 2.0. This is basically a complete re-write to use theRyan Bloom2000-11-141-10/+10
| | | | | | | | | | config tree instead of re-reading the config file. As a part of this change, the config tree needs to be exposed to modules as ap_conftree. Submitted by: Ryan Morgan <rmorgan@covalent.net> Reviewed by: Ryan Bloom git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86948 13f79535-47bb-0310-9956-ffa450edef68
* Solve the os_is_absolute_path problem for the moment.William A. Rowe Jr2000-11-021-0/+5
| | | | | | | | This is -not- the permanent patch for 2.0, simply a placeholder till we have the canonical name implemented in APR for good. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86804 13f79535-47bb-0310-9956-ffa450edef68
* Get Win32 building again.William A. Rowe Jr2000-11-021-1/+2
| | | | | | | | Submitted by: John Sterling <sterling@covalent.net> Reviewed by: wrowe git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86797 13f79535-47bb-0310-9956-ffa450edef68
* Make mod_auth_db compile cleanly in 2.0Ryan Bloom2000-10-301-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86768 13f79535-47bb-0310-9956-ffa450edef68
* Add back suexec support.Manoj Kasichainula2000-10-231-5/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86712 13f79535-47bb-0310-9956-ffa450edef68