diff options
author | Manoj Kasichainula <manoj@apache.org> | 2000-03-16 00:18:32 +0100 |
---|---|---|
committer | Manoj Kasichainula <manoj@apache.org> | 2000-03-16 00:18:32 +0100 |
commit | ad3cb5512812de969f2c1fc148b6a7de21da8c9e (patch) | |
tree | cbbd0a90cd060cb3ddad6da703a88bcce5e6a8d4 | |
parent | Minor nit: use top_srcdir instead of topsrcdir, to be more consistent (diff) | |
download | apache2-ad3cb5512812de969f2c1fc148b6a7de21da8c9e.tar.xz apache2-ad3cb5512812de969f2c1fc148b6a7de21da8c9e.zip |
Eliminate implicit usage of access.conf and srm.conf.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@84771 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | include/ap_config.h | 6 | ||||
-rw-r--r-- | include/httpd.h | 15 | ||||
-rw-r--r-- | modules/generators/mod_info.c | 4 | ||||
-rw-r--r-- | modules/http/http_core.c | 14 | ||||
-rw-r--r-- | server/config.c | 18 | ||||
-rw-r--r-- | server/main.c | 6 |
6 files changed, 0 insertions, 63 deletions
diff --git a/include/ap_config.h b/include/ap_config.h index 01afae5c70..cd356e2168 100644 --- a/include/ap_config.h +++ b/include/ap_config.h @@ -476,15 +476,9 @@ typedef int pid_t; #ifndef SERVER_CONFIG_FILE #define SERVER_CONFIG_FILE "Configuration/Server" #endif -#ifndef RESOURCE_CONFIG_FILE -#define RESOURCE_CONFIG_FILE "Configuration/Resources" -#endif #ifndef TYPES_CONFIG_FILE #define TYPES_CONFIG_FILE "Configuration/MIME" #endif -#ifndef ACCESS_CONFIG_FILE -#define ACCESS_CONFIG_FILE "Configuration/Access" -#endif #ifndef DEFAULT_USER_DIR #define DEFAULT_USER_DIR "Library/Web Documents" #endif diff --git a/include/httpd.h b/include/httpd.h index 23eef47205..614517684b 100644 --- a/include/httpd.h +++ b/include/httpd.h @@ -181,16 +181,6 @@ extern "C" { #define SERVER_CONFIG_FILE "conf/httpd.conf" #endif -/* The name of the document config file */ -#ifndef RESOURCE_CONFIG_FILE -#define RESOURCE_CONFIG_FILE "conf/srm.conf" -#endif - -/* The name of the access file */ -#ifndef ACCESS_CONFIG_FILE -#define ACCESS_CONFIG_FILE "conf/access.conf" -#endif - /* Whether we should enable rfc1413 identity checking */ #ifndef DEFAULT_RFC1413 #define DEFAULT_RFC1413 0 @@ -807,11 +797,6 @@ struct server_rec { const char *defn_name; unsigned defn_line_number; - /* Full locations of server config info */ - - char *srm_confname; - char *access_confname; - /* Contact information */ char *server_admin; diff --git a/modules/generators/mod_info.c b/modules/generators/mod_info.c index a91dded9ec..4778f99c2f 100644 --- a/modules/generators/mod_info.c +++ b/modules/generators/mod_info.c @@ -383,10 +383,6 @@ static int display_info(request_rec *r) if (!r->args || strcasecmp(r->args, "list")) { cfname = ap_server_root_relative(r->pool, ap_server_confname); mod_info_cfg_httpd = mod_info_load_config(r->pool, cfname, r); - cfname = ap_server_root_relative(r->pool, serv->srm_confname); - mod_info_cfg_srm = mod_info_load_config(r->pool, cfname, r); - cfname = ap_server_root_relative(r->pool, serv->access_confname); - mod_info_cfg_access = mod_info_load_config(r->pool, cfname, r); if (!r->args) { ap_rputs("<tt><a href=\"#server\">Server Settings</a>, ", r); for (modp = top_module; modp; modp = modp->next) { diff --git a/modules/http/http_core.c b/modules/http/http_core.c index a1a4c79611..765856e416 100644 --- a/modules/http/http_core.c +++ b/modules/http/http_core.c @@ -1767,14 +1767,6 @@ static const char *virtualhost_section(cmd_parms *cmd, void *dummy, char *arg) } cmd->end_token = old_end_token; - if (s->srm_confname) { - ap_process_resource_config(s, s->srm_confname, p, ptemp); - } - - if (s->access_confname) { - ap_process_resource_config(s, s->access_confname, p, ptemp); - } - if (errmsg == end_virtualhost_section) { return NULL; } @@ -2379,12 +2371,6 @@ static const command_rec core_cmds[] = { { "ErrorLog", set_server_string_slot, (void *)XtOffsetOf (server_rec, error_fname), RSRC_CONF, TAKE1, "The filename of the error log" }, -{ "AccessConfig", set_server_string_slot, - (void *)XtOffsetOf (server_rec, access_confname), RSRC_CONF, TAKE1, - "The filename of the access config file" }, -{ "ResourceConfig", set_server_string_slot, - (void *)XtOffsetOf (server_rec, srm_confname), RSRC_CONF, TAKE1, - "The filename of the resource config file" }, { "ServerAlias", set_server_alias, NULL, RSRC_CONF, RAW_ARGS, "A name or names alternately used to access the server" }, { "ServerPath", set_serverpath, NULL, RSRC_CONF, TAKE1, diff --git a/server/config.c b/server/config.c index cc1d0f244b..266463cee9 100644 --- a/server/config.c +++ b/server/config.c @@ -1031,12 +1031,6 @@ void ap_process_resource_config(server_rec *s, const char *fname, ap_context_t * fname = ap_server_root_relative(p, fname); - if (!(strcmp(fname, ap_server_root_relative(p, RESOURCE_CONFIG_FILE))) || - !(strcmp(fname, ap_server_root_relative(p, ACCESS_CONFIG_FILE)))) { - if (ap_stat(&finfo, fname, p) != APR_SUCCESS) - return; - } - /* don't require conf/httpd.conf if we have a -C or -c switch */ if((ap_server_pre_read_config->nelts || ap_server_post_read_config->nelts) && !(strcmp(fname, ap_server_root_relative(p, SERVER_CONFIG_FILE)))) { @@ -1175,8 +1169,6 @@ CORE_EXPORT(const char *) ap_init_virtual_host(ap_context_t *p, const char *host s->server_admin = NULL; s->server_hostname = NULL; s->error_fname = NULL; - s->srm_confname = NULL; - s->access_confname = NULL; s->timeout = 0; s->keep_alive_timeout = 0; s->keep_alive = -1; @@ -1224,12 +1216,6 @@ static void fixup_virtual_hosts(ap_context_t *p, server_rec *main_server) if (virt->server_admin == NULL) virt->server_admin = main_server->server_admin; - if (virt->srm_confname == NULL) - virt->srm_confname = main_server->srm_confname; - - if (virt->access_confname == NULL) - virt->access_confname = main_server->access_confname; - if (virt->timeout == 0) virt->timeout = main_server->timeout; @@ -1271,8 +1257,6 @@ static server_rec *init_server_config(process_rec *process, ap_context_t *p) s->server_hostname = NULL; s->error_fname = DEFAULT_ERRORLOG; s->loglevel = DEFAULT_LOGLEVEL; - s->srm_confname = RESOURCE_CONFIG_FILE; - s->access_confname = ACCESS_CONFIG_FILE; s->limit_req_line = DEFAULT_LIMIT_REQUEST_LINE; s->limit_req_fieldsize = DEFAULT_LIMIT_REQUEST_FIELDSIZE; s->limit_req_fields = DEFAULT_LIMIT_REQUEST_FIELDS; @@ -1307,8 +1291,6 @@ server_rec *ap_read_config(process_rec *process, ap_context_t *ptemp, const char process_command_config(s, ap_server_pre_read_config, p, ptemp); ap_process_resource_config(s, confname, p, ptemp); - ap_process_resource_config(s, s->srm_confname, p, ptemp); - ap_process_resource_config(s, s->access_confname, p, ptemp); process_command_config(s, ap_server_post_read_config, p, ptemp); diff --git a/server/main.c b/server/main.c index 6b420eb36e..f5a8214fa7 100644 --- a/server/main.c +++ b/server/main.c @@ -191,12 +191,6 @@ static void show_compile_settings(void) #ifdef SERVER_CONFIG_FILE printf(" -D SERVER_CONFIG_FILE=\"" SERVER_CONFIG_FILE "\"\n"); #endif -#ifdef ACCESS_CONFIG_FILE - printf(" -D ACCESS_CONFIG_FILE=\"" ACCESS_CONFIG_FILE "\"\n"); -#endif -#ifdef RESOURCE_CONFIG_FILE - printf(" -D RESOURCE_CONFIG_FILE=\"" RESOURCE_CONFIG_FILE "\"\n"); -#endif } static void destroy_and_exit_process(process_rec *process, int process_exit_value) |