summaryrefslogtreecommitdiffstats
path: root/include/http_config.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Make mod_auth_db compile cleanly in 2.0Ryan Bloom2000-10-301-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86768 13f79535-47bb-0310-9956-ffa450edef68
* Renamed all MODULE_EXPORT symbols to AP_MODULE_DECLARE and all symbolsWilliam A. Rowe Jr2000-10-161-43/+43
| | | | | | | | | | for CORE_EXPORT to AP_CORE_DECLARE (namespace protecting the wrapper) and retitled API_EXPORT as AP_DECLARE and APR_EXPORT as APR_DECLARE. All _VAR_ flavors changes to _DATA to be absolutely clear. Thank you Greg, for the most obvious suggestion. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86609 13f79535-47bb-0310-9956-ffa450edef68
* Start introducing the extension-method elements so we're notKen Coar2000-09-131-0/+1
| | | | | | | | | | | | | | bound to hard-coded names and a bitmask. We still use the bitmask for known methods, but we also have an array for extension method named. Wherever we used the M_* constants we need to use a routine that knows about the new structure instead. This is far from complete, but AFAIK this interim work doesn't break anything -- especially the compile. The rest of the work will be added in segments; this is just a checkpoint. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86210 13f79535-47bb-0310-9956-ffa450edef68
* Preset the cmd_parms->limited field to the magic 'no limit active'Ken Coar2000-08-121-2/+16
| | | | | | | | value, and add some prototype API routines for expanding support for arbitrary extension HTTP methods. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86053 13f79535-47bb-0310-9956-ffa450edef68
* prefix libapr functions and types with apr_Doug MacEachern2000-08-021-47/+47
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85976 13f79535-47bb-0310-9956-ffa450edef68
* Finish the http_config.h documentation. :-)Ryan Bloom2000-07-301-13/+178
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85955 13f79535-47bb-0310-9956-ffa450edef68
* Add more of the comments to http_config.h. This is a horrible job by theRyan Bloom2000-07-301-16/+234
| | | | | | | way. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85954 13f79535-47bb-0310-9956-ffa450edef68
* Fix a couple of apparent typos.Manoj Kasichainula2000-07-301-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85949 13f79535-47bb-0310-9956-ffa450edef68
* Begin to document http_config.h. This documents most (if not all) of theRyan Bloom2000-07-291-94/+178
| | | | | | | | structures defined by this header file. The functions will be the next thing that needs documenting. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85942 13f79535-47bb-0310-9956-ffa450edef68
* Fix a small typo. TAKE3 directives really do need to take all 3 arguments.Ryan Bloom2000-07-281-2/+2
| | | | | | | Submitted by: Jeff Trawick git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85925 13f79535-47bb-0310-9956-ffa450edef68
* Add the macro for AP_INIT_TAKE3 directives. I am assuming this was leftRyan Bloom2000-07-281-0/+4
| | | | | | | out by mistake. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85923 13f79535-47bb-0310-9956-ffa450edef68
* Back out some changes that weren't supposed to be in my last commit.Ryan Bloom2000-07-261-6/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85898 13f79535-47bb-0310-9956-ffa450edef68
* Remove all of the ap_is* functions from Apache. They were already in APR,Ryan Bloom2000-07-261-0/+6
| | | | | | | | and we all hate duplicate code. :-) This also required adding ap_isascii to APR. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85897 13f79535-47bb-0310-9956-ffa450edef68
* blast the old names for the status codesGreg Stein2000-06-241-2/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85686 13f79535-47bb-0310-9956-ffa450edef68
* Use the new command-handler initializer macros in mod_auth;Jeff Trawick2000-06-181-2/+2
| | | | | | | clean up the resulting warnings. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85609 13f79535-47bb-0310-9956-ffa450edef68
* Provide some more missing initializer macros for when AP_DEBUG isn'tJeff Trawick2000-06-181-0/+4
| | | | | | | defined (no, I didn't miss these in my commit this a.m. :) ). git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85605 13f79535-47bb-0310-9956-ffa450edef68
* More command handlers.Ben Laurie2000-06-171-1/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85604 13f79535-47bb-0310-9956-ffa450edef68
* More command handler updates.Ben Laurie2000-06-171-0/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85600 13f79535-47bb-0310-9956-ffa450edef68
* Fill in missing implementations of AP_INIT_whatever for whenJeff Trawick2000-06-171-0/+20
| | | | | | | | AP_DEBUG is not defined. Apache now compiles for me on FreeBSD 3.4 when AP_DEBUG isn't defined (albeit with a few warnings). git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85596 13f79535-47bb-0310-9956-ffa450edef68
* Command handler revamp. Note that this makes the code produce a LOT ofBen Laurie2000-06-171-4/+53
| | | | | | | warnings! git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85595 13f79535-47bb-0310-9956-ffa450edef68
* Fix a couple of problems with the pre/post config processing changes:Jeff Trawick2000-06-121-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85522 13f79535-47bb-0310-9956-ffa450edef68
* PR:William A. Rowe Jr2000-06-061-2/+2
| | | | | | | | | | | | 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 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85436 13f79535-47bb-0310-9956-ffa450edef68
* Modify the config order so that we read the config, process all EXEC_ON_READRyan Bloom2000-06-031-2/+6
| | | | | | | | | | | 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. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85393 13f79535-47bb-0310-9956-ffa450edef68
* Add pre_config hooks back in for all modules. This is important for theRyan Bloom2000-06-021-5/+4
| | | | | | | server tokens code that is coming soon. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85378 13f79535-47bb-0310-9956-ffa450edef68
* We now report the correct line number for syntax errors in configJeff Trawick2000-05-301-0/+1
| | | | | | | files. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85348 13f79535-47bb-0310-9956-ffa450edef68
* PR:William A. Rowe Jr2000-05-281-11/+14
| | | | | | | | | | | | | | | | 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. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85326 13f79535-47bb-0310-9956-ffa450edef68
* PR:William A. Rowe Jr2000-05-281-4/+4
| | | | | | | | | | | | Obtained from: Submitted by: Reviewed by: Reverse out additional linkage argument from DECLARE_HOOK and IMPLEMENT_HOOK macros. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85319 13f79535-47bb-0310-9956-ffa450edef68
* PR:William A. Rowe Jr2000-05-281-2/+2
| | | | | | | | | | | | 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_). git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85318 13f79535-47bb-0310-9956-ffa450edef68
* William A. Rowe Jr2000-05-271-0/+3
| | | | | | | | | | Pass the process_rec to the MPM to allow rewriting of the args list. Especially necessary under Win32, or other non-unix front ends where oddball arguments might be required, but without causing a mess in http_main.c. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85311 13f79535-47bb-0310-9956-ffa450edef68
* William A. Rowe Jr2000-05-271-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85309 13f79535-47bb-0310-9956-ffa450edef68
* Move prototype of ap_hook_deregister_all to where it belongs.Roy T. Fielding2000-05-181-1/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85241 13f79535-47bb-0310-9956-ffa450edef68
* William A. Rowe Jr2000-05-171-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | Radical overhaul of the Apache-2.0/Win32 mpm <-> service schema. 1) Services and Registry are not part of the core Apache operations, so registry.c and service.c are moved into Apache.exe - assuring the service control layers of NT and 95 are truly isolated. 2) Isolation can't be complete, we need to know when the mpm is fully initialized. A new pointer to a no-arg function returning void is provided for this purpose, ap_mpm_init_complete. It is only called if overridden with a non-NULL value prior to invoking apache_main. 3) Control+C, Control+Break are handled on both WinNT and Win9x. 4) The window close, logoff and shutdown events are handled on WinNT. 5) The beginnings of a Win95 service startup are provided, -k startservice but this is horribly incomplete since Win95 will NOT report shutdown. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85235 13f79535-47bb-0310-9956-ffa450edef68
* Commit the EXEC_ON_READ changes. This allows modules to hook into theRyan Bloom2000-05-151-11/+19
| | | | | | | | | | 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. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85217 13f79535-47bb-0310-9956-ffa450edef68
* add AP_ prefix to *HOOK* macrosDoug MacEachern2000-04-261-4/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85045 13f79535-47bb-0310-9956-ffa450edef68
* drop the "container" param from ap_walk_config(). callers should simplyGreg Stein2000-04-241-1/+2
| | | | | | | | | | | 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. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85025 13f79535-47bb-0310-9956-ffa450edef68
* clean up cmd_parms: config_file is no longer valid; end_token is bogus;Greg Stein2000-04-241-3/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 :-) ] git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85024 13f79535-47bb-0310-9956-ffa450edef68
* handle error messages during building and processing of the configuration.Greg Stein2000-04-241-2/+3
| | | | | | | | | | 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). git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85023 13f79535-47bb-0310-9956-ffa450edef68
* Parse the config tree, instead of the config file. This is a first step thereRyan Bloom2000-04-231-1/+3
| | | | | | | | are some big improvements to be made to this code, but this works now, and it is a first step. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85015 13f79535-47bb-0310-9956-ffa450edef68
* Change ap_context_t to ap_pool_t. This compiles, runs, and serves pagesRyan Bloom2000-04-141-22/+22
| | | | | | | on Linux, but probably breaks somewhere. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@84963 13f79535-47bb-0310-9956-ffa450edef68
* more namespace cleanupdgaudet2000-04-141-0/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@84961 13f79535-47bb-0310-9956-ffa450edef68
* Update to Apache Software License version 1.1Roy T. Fielding2000-03-311-33/+34
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@84877 13f79535-47bb-0310-9956-ffa450edef68
* Fix the warnings associated with the pre_config patch.Ryan Bloom2000-03-301-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@84864 13f79535-47bb-0310-9956-ffa450edef68
* Put the pre_config hook back into the table. This solves the problem ofRyan Bloom2000-03-301-2/+10
| | | | | | | | the pre-config hook only being valid for MPM's. This patch also distinguishes between STANDARD modules and MPM's. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@84862 13f79535-47bb-0310-9956-ffa450edef68
* Clear hook registrations between reads of the config file.Allan K. Edwards2000-03-231-0/+2
| | | | | | | | When DSOs are unloaded and re-loaded the old hook pointers may no longer be valid. This fix eliminates potential segfaults. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@84828 13f79535-47bb-0310-9956-ffa450edef68
* Fix all the License issues. Including:Ryan Bloom2000-03-101-9/+9
| | | | | | | | | s/Apache Group/Apache Software Foundation/ s/1999/2000/ s/Sascha's license/ASF license git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@84725 13f79535-47bb-0310-9956-ffa450edef68
* Well this was thought provoking.Ben Hyde1999-10-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | 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. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@83943 13f79535-47bb-0310-9956-ffa450edef68
* Add process_rec to the top of {server,connection,request}_recBen Hyde1999-10-071-1/+1
| | | | | | | | | | | | | | | | | | 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. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@83942 13f79535-47bb-0310-9956-ffa450edef68
* Changed pools to contexts. Tested with prefork and pthread mpm's. I'llRyan Bloom1999-08-311-21/+21
| | | | | | | check this out tomorrow and make sure everything was checked in correctly. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@83852 13f79535-47bb-0310-9956-ffa450edef68
* Start to implement module-defined hooks that are a) fast and b) typesafe.Roy T. Fielding1999-08-261-69/+29
| | | | | | | | | | | | | | | 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 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@83770 13f79535-47bb-0310-9956-ffa450edef68
* Rearchitect the mess in http_main.c, http_core.c and buff.c.Roy T. Fielding1999-08-261-2/+8
| | | | | | | | | | | | | | | | | | | | | | | | 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 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@83763 13f79535-47bb-0310-9956-ffa450edef68