Apache2
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
http_config.h
Go to the documentation of this file.
1 /* Licensed to the Apache Software Foundation (ASF) under one or more
2  * contributor license agreements. See the NOTICE file distributed with
3  * this work for additional information regarding copyright ownership.
4  * The ASF licenses this file to You under the Apache License, Version 2.0
5  * (the "License"); you may not use this file except in compliance with
6  * the License. You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
26 #ifndef APACHE_HTTP_CONFIG_H
27 #define APACHE_HTTP_CONFIG_H
28 
29 #include "util_cfgtree.h"
30 #include "ap_config.h"
31 #include "apr_tables.h"
32 
33 #ifdef __cplusplus
34 extern "C" {
35 #endif
36 
37 /*
38  * The central data structures around here...
39  */
40 
41 /* Command dispatch structures... */
42 
49 enum cmd_how {
59  FLAG,
67 };
68 
74 typedef struct cmd_parms_struct cmd_parms;
75 
76 #if defined(AP_HAVE_DESIGNATED_INITIALIZER) || defined(DOXYGEN)
77 
82 typedef union {
84  const char *(*no_args) (cmd_parms *parms, void *mconfig);
86  const char *(*raw_args) (cmd_parms *parms, void *mconfig,
87  const char *args);
89  const char *(*take_argv) (cmd_parms *parms, void *mconfig,
90  int argc, char *const argv[]);
92  const char *(*take1) (cmd_parms *parms, void *mconfig, const char *w);
94  const char *(*take2) (cmd_parms *parms, void *mconfig, const char *w,
95  const char *w2);
97  const char *(*take3) (cmd_parms *parms, void *mconfig, const char *w,
98  const char *w2, const char *w3);
100  const char *(*flag) (cmd_parms *parms, void *mconfig, int on);
101 } cmd_func;
102 
104 # define AP_NO_ARGS func.no_args
105 
106 # define AP_RAW_ARGS func.raw_args
107 
108 # define AP_TAKE_ARGV func.take_argv
109 
110 # define AP_TAKE1 func.take1
111 
112 # define AP_TAKE2 func.take2
113 
114 # define AP_TAKE3 func.take3
115 
116 # define AP_FLAG func.flag
117 
119 # define AP_INIT_NO_ARGS(directive, func, mconfig, where, help) \
120  { directive, { .no_args=func }, mconfig, where, NO_ARGS, help }
121 
122 # define AP_INIT_RAW_ARGS(directive, func, mconfig, where, help) \
123  { directive, { .raw_args=func }, mconfig, where, RAW_ARGS, help }
124 
125 # define AP_INIT_TAKE_ARGV(directive, func, mconfig, where, help) \
126  { directive, { .take_argv=func }, mconfig, where, TAKE_ARGV, help }
127 
128 # define AP_INIT_TAKE1(directive, func, mconfig, where, help) \
129  { directive, { .take1=func }, mconfig, where, TAKE1, help }
130 
131 # define AP_INIT_ITERATE(directive, func, mconfig, where, help) \
132  { directive, { .take1=func }, mconfig, where, ITERATE, help }
133 
134 # define AP_INIT_TAKE2(directive, func, mconfig, where, help) \
135  { directive, { .take2=func }, mconfig, where, TAKE2, help }
136 
137 # define AP_INIT_TAKE12(directive, func, mconfig, where, help) \
138  { directive, { .take2=func }, mconfig, where, TAKE12, help }
139 
140 # define AP_INIT_ITERATE2(directive, func, mconfig, where, help) \
141  { directive, { .take2=func }, mconfig, where, ITERATE2, help }
142 
143 # define AP_INIT_TAKE13(directive, func, mconfig, where, help) \
144  { directive, { .take3=func }, mconfig, where, TAKE13, help }
145 
146 # define AP_INIT_TAKE23(directive, func, mconfig, where, help) \
147  { directive, { .take3=func }, mconfig, where, TAKE23, help }
148 
149 # define AP_INIT_TAKE123(directive, func, mconfig, where, help) \
150  { directive, { .take3=func }, mconfig, where, TAKE123, help }
151 
152 # define AP_INIT_TAKE3(directive, func, mconfig, where, help) \
153  { directive, { .take3=func }, mconfig, where, TAKE3, help }
154 
155 # define AP_INIT_FLAG(directive, func, mconfig, where, help) \
156  { directive, { .flag=func }, mconfig, where, FLAG, help }
157 
158 #else /* AP_HAVE_DESIGNATED_INITIALIZER */
159 
160 typedef const char *(*cmd_func) ();
161 
162 # define AP_NO_ARGS func
163 # define AP_RAW_ARGS func
164 # define AP_TAKE_ARGV func
165 # define AP_TAKE1 func
166 # define AP_TAKE2 func
167 # define AP_TAKE3 func
168 # define AP_FLAG func
169 
170 # define AP_INIT_NO_ARGS(directive, func, mconfig, where, help) \
171  { directive, func, mconfig, where, NO_ARGS, help }
172 # define AP_INIT_RAW_ARGS(directive, func, mconfig, where, help) \
173  { directive, func, mconfig, where, RAW_ARGS, help }
174 # define AP_INIT_TAKE_ARGV(directive, func, mconfig, where, help) \
175  { directive, func, mconfig, where, TAKE_ARGV, help }
176 # define AP_INIT_TAKE1(directive, func, mconfig, where, help) \
177  { directive, func, mconfig, where, TAKE1, help }
178 # define AP_INIT_ITERATE(directive, func, mconfig, where, help) \
179  { directive, func, mconfig, where, ITERATE, help }
180 # define AP_INIT_TAKE2(directive, func, mconfig, where, help) \
181  { directive, func, mconfig, where, TAKE2, help }
182 # define AP_INIT_TAKE12(directive, func, mconfig, where, help) \
183  { directive, func, mconfig, where, TAKE12, help }
184 # define AP_INIT_ITERATE2(directive, func, mconfig, where, help) \
185  { directive, func, mconfig, where, ITERATE2, help }
186 # define AP_INIT_TAKE13(directive, func, mconfig, where, help) \
187  { directive, func, mconfig, where, TAKE13, help }
188 # define AP_INIT_TAKE23(directive, func, mconfig, where, help) \
189  { directive, func, mconfig, where, TAKE23, help }
190 # define AP_INIT_TAKE123(directive, func, mconfig, where, help) \
191  { directive, func, mconfig, where, TAKE123, help }
192 # define AP_INIT_TAKE3(directive, func, mconfig, where, help) \
193  { directive, func, mconfig, where, TAKE3, help }
194 # define AP_INIT_FLAG(directive, func, mconfig, where, help) \
195  { directive, func, mconfig, where, FLAG, help }
196 
197 #endif /* AP_HAVE_DESIGNATED_INITIALIZER */
198 
206  const char *name;
210  void *cmd_data;
215 
217  const char *errmsg;
218 };
219 
228 #define OR_NONE 0
229 #define OR_LIMIT 1
231 #define OR_OPTIONS 2
233 #define OR_FILEINFO 4
235 #define OR_AUTHCFG 8
237 #define OR_INDEXES 16
239 #define OR_UNSET 32
240 #define ACCESS_CONF 64
241 #define RSRC_CONF 128
242 #define EXEC_ON_READ 256
245 /* Flags to determine whether syntax errors in .htaccess should be
246  * treated as nonfatal (log and ignore errors)
247  */
248 #define NONFATAL_OVERRIDE 512 /* Violation of AllowOverride rule */
249 #define NONFATAL_UNKNOWN 1024 /* Unrecognised directive */
250 #define NONFATAL_ALL (NONFATAL_OVERRIDE|NONFATAL_UNKNOWN)
251 
252 #define PROXY_CONF 2048
255 #define OR_ALL (OR_LIMIT|OR_OPTIONS|OR_FILEINFO|OR_AUTHCFG|OR_INDEXES)
264 #define DECLINE_CMD "\a\b"
265 
267 typedef struct ap_configfile_t ap_configfile_t;
268 struct ap_configfile_t {
270  apr_status_t (*getch) (char *ch, void *param);
272  apr_status_t (*getstr) (void *buf, apr_size_t bufsiz, void *param);
276  void *param;
278  const char *name;
280  unsigned line_number;
281 };
282 
288 struct cmd_parms_struct {
290  void *info;
292  int override;
294  int override_opts;
308 
310  apr_pool_t *pool;
322  char *path;
324  const command_rec *cmd;
325 
327  struct ap_conf_vector_t *context;
330 
334 };
335 
339 #define AP_MODULE_FLAG_NONE (0)
340 #define AP_MODULE_FLAG_ALWAYS_MERGE (1 << 0)
341 
347 typedef struct module_struct module;
348 struct module_struct {
352  int version;
357  int module_index;
358 
360  const char *name;
363 
368 
371  unsigned long magic;
372 
377  void (*rewrite_args) (process_rec *process);
384  void *(*create_dir_config) (apr_pool_t *p, char *dir);
392  void *(*merge_dir_config) (apr_pool_t *p, void *base_conf, void *new_conf);
399  void *(*create_server_config) (apr_pool_t *p, server_rec *s);
407  void *(*merge_server_config) (apr_pool_t *p, void *base_conf,
408  void *new_conf);
409 
412  const command_rec *cmds;
413 
421 
423  int flags;
424 };
425 
434 #ifdef AP_MAYBE_UNUSED
435 #elif defined(__GNUC__)
436 # define AP_MAYBE_UNUSED(x) x __attribute__((unused))
437 #elif defined(__LCLINT__)
438 # define AP_MAYBE_UNUSED(x) /*@unused@*/ x
439 #else
440 # define AP_MAYBE_UNUSED(x) x
441 #endif
442 
456 #define APLOG_USE_MODULE(foo) \
457  extern module AP_MODULE_DECLARE_DATA foo##_module; \
458  AP_MAYBE_UNUSED(static int * const aplog_module_index) = &(foo##_module.module_index)
459 
467 #define AP_DECLARE_MODULE(foo) \
468  APLOG_USE_MODULE(foo); \
469  module AP_MODULE_DECLARE_DATA foo##_module
470 
486 #define STANDARD_MODULE_STUFF this_module_needs_to_be_ported_to_apache_2_0
487 
489 #define STANDARD20_MODULE_STUFF MODULE_MAGIC_NUMBER_MAJOR, \
490  MODULE_MAGIC_NUMBER_MINOR, \
491  -1, \
492  __FILE__, \
493  NULL, \
494  NULL, \
495  MODULE_MAGIC_COOKIE, \
496  NULL /* rewrite args spot */
497 
499 #define MPM20_MODULE_STUFF MODULE_MAGIC_NUMBER_MAJOR, \
500  MODULE_MAGIC_NUMBER_MINOR, \
501  -1, \
502  __FILE__, \
503  NULL, \
504  NULL, \
505  MODULE_MAGIC_COOKIE
509 /* CONFIGURATION VECTOR FUNCTIONS */
510 
512 typedef struct ap_conf_vector_t ap_conf_vector_t;
513 
523  const module *m);
524 
534  void *val);
535 
539 #define AP_MODULE_FLAGS_MMN_MAJOR 20161018
540 #define AP_MODULE_FLAGS_MMN_MINOR 7
541 #define AP_MODULE_HAS_FLAGS(m) \
542  AP_MODULE_MAGIC_AT_LEAST(AP_MODULE_FLAGS_MMN_MAJOR, \
543  AP_MODULE_FLAGS_MMN_MINOR)
544 
549 AP_DECLARE(int) ap_get_module_flags(const module *m);
550 
551 #if !defined(AP_DEBUG)
552 
553 #define ap_get_module_config(v,m) \
554  (((void **)(v))[(m)->module_index])
555 #define ap_set_module_config(v,m,val) \
556  ((((void **)(v))[(m)->module_index]) = (val))
557 
558 #endif /* AP_DEBUG */
559 
567 AP_DECLARE(int) ap_get_server_module_loglevel(const server_rec *s, int index);
568 
575 AP_DECLARE(int) ap_get_conn_module_loglevel(const conn_rec *c, int index);
576 
586  const server_rec *s,
587  int index);
588 
596 
605  int index, int level);
606 
607 #if !defined(AP_DEBUG)
608 
609 #define ap_get_conn_logconf(c) \
610  ((c)->log ? (c)->log : \
611  &(c)->base_server->log)
612 
613 #define ap_get_conn_server_logconf(c,s) \
614  ( ( (c)->log != &(c)->base_server->log && (c)->log != NULL ) ? \
615  (c)->log : \
616  &(s)->log )
617 
618 #define ap_get_request_logconf(r) \
619  ((r)->log ? (r)->log : \
620  (r)->connection->log ? (r)->connection->log : \
621  &(r)->server->log)
622 
623 #define ap_get_module_loglevel(l,i) \
624  (((i) < 0 || (l)->module_levels == NULL || (l)->module_levels[i] < 0) ? \
625  (l)->level : \
626  (l)->module_levels[i])
627 
628 #define ap_get_server_module_loglevel(s,i) \
629  (ap_get_module_loglevel(&(s)->log,i))
631 #define ap_get_conn_module_loglevel(c,i) \
632  (ap_get_module_loglevel(ap_get_conn_logconf(c),i))
633 
634 #define ap_get_conn_server_module_loglevel(c,s,i) \
635  (ap_get_module_loglevel(ap_get_conn_server_logconf(c,s),i))
636 
637 #define ap_get_request_module_loglevel(r,i) \
638  (ap_get_module_loglevel(ap_get_request_logconf(r),i))
639 
640 #endif /* AP_DEBUG */
647 AP_DECLARE(void) ap_reset_module_loglevels(struct ap_logconf *l, int val);
648 
657  void *struct_ptr,
658  const char *arg);
659 
667 AP_DECLARE_NONSTD(const char *) ap_set_int_slot(cmd_parms *cmd,
668  void *struct_ptr,
669  const char *arg);
670 
677 AP_DECLARE(const char *) ap_parse_log_level(const char *str, int *val);
678 
689 AP_DECLARE(int) ap_method_is_limited(cmd_parms *cmd, const char *method);
690 
700  void *struct_ptr,
701  const char *arg);
709 AP_DECLARE_NONSTD(const char *) ap_set_flag_slot(cmd_parms *cmd,
710  void *struct_ptr,
711  int arg);
720  void *struct_ptr,
721  int arg);
729 AP_DECLARE_NONSTD(const char *) ap_set_file_slot(cmd_parms *cmd,
730  void *struct_ptr,
731  const char *arg);
745  void *struct_ptr,
746  const char *arg);
753 AP_DECLARE(char *) ap_server_root_relative(apr_pool_t *p, const char *fname);
754 
761 AP_DECLARE(char *) ap_runtime_dir_relative(apr_pool_t *p, const char *fname);
762 
763 /* Finally, the hook for dynamically loading modules in... */
764 
771 AP_DECLARE(const char *) ap_add_module(module *m, apr_pool_t *p,
772  const char *s);
773 
789 AP_DECLARE(const char *) ap_add_loaded_module(module *mod, apr_pool_t *p,
790  const char *s);
801 AP_DECLARE(const char *) ap_find_module_name(module *m);
807 AP_DECLARE(const char *) ap_find_module_short_name(int module_index);
814 
822  apr_pool_t *p, const char *name);
823 
834  const char *descr,
835  void *param,
836  apr_status_t (*getc_func) (char *ch, void *param),
837  apr_status_t (*gets_func) (void *buf, apr_size_t bufsiz, void *param),
838  apr_status_t (*close_func) (void *param));
839 
849 
857 
864 
874  apr_status_t rc);
875 
885 AP_DECLARE(const char *) ap_soak_end_container(cmd_parms *cmd, const char *directive);
886 
901  apr_pool_t *temp_pool,
902  cmd_parms *parms,
903  ap_directive_t **current,
904  ap_directive_t **curr_parent,
905  const char *orig_directive);
906 
917 AP_DECLARE(const char *) ap_build_config(cmd_parms *parms,
918  apr_pool_t *conf_pool,
919  apr_pool_t *temp_pool,
920  ap_directive_t **conftree);
921 
929 AP_DECLARE(const char *) ap_walk_config(ap_directive_t *conftree,
930  cmd_parms *parms,
931  ap_conf_vector_t *section_vector);
932 
943 AP_DECLARE(const char *) ap_check_cmd_context(cmd_parms *cmd,
944  unsigned forbidden);
945 
946 #define NOT_IN_VIRTUALHOST 0x01
947 #define NOT_IN_LIMIT 0x02
948 #define NOT_IN_DIRECTORY 0x04
949 #define NOT_IN_LOCATION 0x08
950 #define NOT_IN_FILES 0x10
951 #define NOT_IN_HTACCESS 0x20
952 #define NOT_IN_PROXY 0x40
954 #define NOT_IN_DIR_LOC_FILE (NOT_IN_DIRECTORY|NOT_IN_LOCATION|NOT_IN_FILES)
956 #define NOT_IN_DIR_CONTEXT (NOT_IN_LIMIT|NOT_IN_DIR_LOC_FILE|NOT_IN_PROXY)
958 #define GLOBAL_ONLY (NOT_IN_VIRTUALHOST|NOT_IN_DIR_CONTEXT)
965 typedef struct {
966  const char *name;
967  module *modp;
969 
975 
996 
997 /* For mod_so.c... */
1004  module *m);
1005 
1006 /* For http_main.c... */
1011 AP_DECLARE(const char *) ap_setup_prelinked_modules(process_rec *process);
1012 
1018 AP_DECLARE(void) ap_show_directives(void);
1019 
1026 AP_DECLARE(int) ap_exists_directive(apr_pool_t *p, const char *name);
1027 
1031 AP_DECLARE(void) ap_show_modules(void);
1032 
1037 AP_DECLARE(const char *) ap_show_mpm(void);
1038 
1048  apr_pool_t *temp_pool,
1049  const char *config_name,
1050  ap_directive_t **conftree);
1051 
1057 
1064 
1071  server_rec *main_server);
1072 
1079 AP_DECLARE(void) ap_reserve_module_slots(int count);
1080 
1088 AP_DECLARE(void) ap_reserve_module_slots_directive(const char *directive);
1089 
1090 /* For http_request.c... */
1091 
1098 
1105 
1113  ap_conf_vector_t *base,
1114  ap_conf_vector_t *new_conf);
1115 
1123  const struct ap_logconf *old);
1124 
1131 AP_DECLARE(void) ap_merge_log_config(const struct ap_logconf *old_conf,
1132  struct ap_logconf *new_conf);
1133 
1134 /* For http_connection.c... */
1141 
1142 /* For http_core.c... (&lt;Directory&gt; command and virtual hosts) */
1143 
1156  request_rec *r,
1157  int override,
1158  int override_opts,
1159  apr_table_t *override_list,
1160  const char *path,
1161  const char *access_name);
1162 
1172  const char *hostname,
1173  server_rec *main_server,
1174  server_rec **ps);
1175 
1185  const char *fname,
1186  ap_directive_t **conftree,
1187  apr_pool_t *p,
1188  apr_pool_t *ptemp);
1189 
1201  const char *fname,
1202  ap_directive_t **conftree,
1203  apr_pool_t *p,
1204  apr_pool_t *ptemp,
1205  int optional);
1206 
1216  ap_directive_t *conftree,
1217  apr_pool_t *p,
1218  apr_pool_t *ptemp);
1219 
1226 AP_DECLARE(void *) ap_retained_data_create(const char *key, apr_size_t size);
1227 
1233 AP_DECLARE(void *) ap_retained_data_get(const char *key);
1234 
1235 /* Module-method dispatchers, also for http_request.c */
1243 
1244 /* for mod_perl */
1245 
1252 AP_CORE_DECLARE(const command_rec *) ap_find_command(const char *name,
1253  const command_rec *cmds);
1254 
1264 AP_CORE_DECLARE(const command_rec *) ap_find_command_in_modules(const char *cmd_name,
1265  module **mod);
1266 
1279  ap_conf_vector_t *section_vector,
1280  const char *section,
1281  module *mod, apr_pool_t *pconf);
1282 
1283  /* Hooks */
1284 
1292 
1302  apr_pool_t *ptemp))
1303 
1314  apr_pool_t *ptemp, server_rec *s))
1315 
1327 
1338  apr_pool_t *ptemp,server_rec *s))
1339 
1350  apr_pool_t *ptemp,server_rec *s))
1351 
1358 AP_DECLARE_HOOK(void,child_init,(apr_pool_t *pchild, server_rec *s))
1359 
1367 
1380 AP_DECLARE_HOOK(int,quick_handler,(request_rec *r, int lookup_uri))
1381 
1389 
1406  (request_rec *r, const char *dir_name, const char *access_name,
1407  ap_configfile_t **conffile, const char **full_name))
1408 
1412 apr_status_t ap_open_htaccess(request_rec *r, const char *dir_name,
1413  const char *access_name, ap_configfile_t **conffile,
1414  const char **full_name);
1415 
1422 AP_DECLARE_NONSTD(apr_status_t) ap_pool_cleanup_set_null(void *data);
1423 
1424 #ifdef __cplusplus
1425 }
1426 #endif
1427 
1428 #endif /* !APACHE_HTTP_CONFIG_H */
1429 
const char * ap_find_module_name(module *m)
const command_rec * cmds
Definition: http_config.h:419
const char * ap_show_mpm(void)
apr_pool_t * temp_pool
Definition: http_config.h:320
const char * ap_parse_log_level(const char *str, int *val)
size_t apr_size_t
Definition: apr.h:375
const char * ap_init_virtual_host(apr_pool_t *p, const char *hostname, server_rec *main_server, server_rec **ps)
void * ap_set_config_vectors(server_rec *server, ap_conf_vector_t *section_vector, const char *section, module *mod, apr_pool_t *pconf)
void test_config(apr_pool_t *pconf, server_rec *s)
module * ap_find_linked_module(const char *name)
int open_logs(apr_pool_t *pconf, apr_pool_t *plog, apr_pool_t *ptemp, server_rec *s)
#define AP_CORE_DECLARE(x)
Definition: macros.h:3
const char * ap_process_fnmatch_configs(server_rec *s, const char *fname, ap_directive_t **conftree, apr_pool_t *p, apr_pool_t *ptemp, int optional)
AP_DECLARE_DATA module * ap_prelinked_modules[]
unsigned long magic
Definition: http_config.h:378
Definition: http_config.h:64
void optional_fn_retrieve(void)
const char * name
Definition: http_config.h:206
AP_DECLARE_DATA module * ap_top_module
Definition: apr_tables.h:62
void * param
Definition: http_config.h:283
int ap_cfg_closefile(ap_configfile_t *cfp)
cmd_func func
Definition: http_config.h:208
const char * ap_set_deprecated(cmd_parms *cmd, void *struct_ptr, const char *arg)
Definition: http_config.h:50
const char * ap_set_flag_slot_char(cmd_parms *cmd, void *struct_ptr, int arg)
AP_DECLARE_DATA module ** ap_loaded_modules
void ap_register_hooks(module *m, apr_pool_t *p)
void * cmd_data
Definition: http_config.h:210
const char * ap_pcfg_strerror(apr_pool_t *p, ap_configfile_t *cfp, apr_status_t rc)
Definition: http_config.h:65
int flags
Definition: http_config.h:430
#define AP_DECLARE(x)
Definition: macros.h:1
const char * ap_set_int_slot(cmd_parms *cmd, void *struct_ptr, const char *arg)
void ap_set_module_loglevel(apr_pool_t *p, struct ap_logconf *l, int index, int level)
const char * ap_find_module_short_name(int module_index)
apr_table_t * override_list
Definition: http_config.h:303
const char * ap_process_resource_config(server_rec *s, const char *fname, ap_directive_t **conftree, apr_pool_t *p, apr_pool_t *ptemp)
apr_array_header_t * limited_xmethods
Definition: http_config.h:307
Definition: http_config.h:61
#define AP_DECLARE_NONSTD(x)
Definition: macros.h:2
ap_directive_t * directive
Definition: http_config.h:314
struct ap_conf_vector_t * context
Definition: http_config.h:334
int ap_get_module_flags(const module *m)
Definition: http_config.h:66
apr_status_t ap_pool_cleanup_set_null(void *data)
void * ap_retained_data_create(const char *key, apr_size_t size)
apr_status_t ap_pcfg_openfile(ap_configfile_t **ret_cfg, apr_pool_t *p, const char *name)
const char * ap_add_module(module *m, apr_pool_t *p, const char *s)
AP_DECLARE_DATA ap_module_symbol_t ap_prelinked_module_symbols[]
int module_index
Definition: http_config.h:364
apr_status_t(* close)(void *param)
Definition: http_config.h:281
A structure that represents one process.
Definition: httpd.h:790
const char * name
Definition: http_config.h:367
int handler(request_rec *r)
void ap_remove_module(module *m)
Structure to store things which are per connection.
Definition: httpd.h:1116
void(* register_hooks)(apr_pool_t *p)
Definition: http_config.h:427
dav_buffer apr_size_t size
Definition: mod_dav.h:457
ap_conf_vector_t * ap_create_conn_config(apr_pool_t *p)
Symbol export macros and hook functions.
const char * ap_set_file_slot(cmd_parms *cmd, void *struct_ptr, const char *arg)
ap_conf_vector_t * ap_create_per_dir_config(apr_pool_t *p)
int check_config(apr_pool_t *pconf, apr_pool_t *plog, apr_pool_t *ptemp, server_rec *s)
void ap_run_rewrite_args(process_rec *process)
#define AP_DECLARE_HOOK(ret, name, args)
Definition: ap_hooks.h:74
Definition: http_config.h:295
apr_status_t open_htaccess(request_rec *r, const char *dir_name, const char *access_name, ap_configfile_t **conffile, const char **full_name)
Definition: http_config.h:56
Definition: http_config.h:204
int header_parser(request_rec *r)
void(* rewrite_args)(process_rec *process)
Definition: http_config.h:384
int minor_version
Definition: http_config.h:362
void * info
Definition: http_config.h:297
void ap_show_modules(void)
struct ap_logconf * ap_new_log_config(apr_pool_t *p, const struct ap_logconf *old)
void ap_show_directives(void)
A structure to store information for each virtual server.
Definition: httpd.h:1313
const char * ap_check_cmd_context(cmd_parms *cmd, unsigned forbidden)
int ap_method_is_limited(cmd_parms *cmd, const char *method)
void * dynamic_load_handle
Definition: http_config.h:369
#define ap_get_module_config(v, m)
Definition: http_config.h:560
server_rec * ap_read_config(process_rec *process, apr_pool_t *temp_pool, const char *config_name, ap_directive_t **conftree)
ap_configfile_t * ap_pcfg_open_custom(apr_pool_t *p, const char *descr, void *param, apr_status_t(*getc_func)(char *ch, void *param), apr_status_t(*gets_func)(void *buf, apr_size_t bufsiz, void *param), apr_status_t(*close_func)(void *param))
Definition: http_config.h:60
APR Table library.
const char * ap_add_loaded_module(module *mod, apr_pool_t *p, const char *s)
void ap_merge_log_config(const struct ap_logconf *old_conf, struct ap_logconf *new_conf)
Structure used to build the config tree.
Definition: util_cfgtree.h:46
#define ap_set_module_config(v, m, val)
Definition: http_config.h:562
int override_opts
Definition: http_config.h:301
int quick_handler(request_rec *r, int lookup_uri)
const char * ap_walk_config(ap_directive_t *conftree, cmd_parms *parms, ap_conf_vector_t *section_vector)
const char * ap_build_cont_config(apr_pool_t *p, apr_pool_t *temp_pool, cmd_parms *parms, ap_directive_t **current, ap_directive_t **curr_parent, const char *orig_directive)
int req_override
Definition: http_config.h:212
void ap_reserve_module_slots_directive(const char *directive)
int ap_parse_htaccess(ap_conf_vector_t **result, request_rec *r, int override, int override_opts, apr_table_t *override_list, const char *path, const char *access_name)
Definition: http_config.h:53
#define ap_get_conn_server_module_loglevel(c, s, i)
Definition: http_config.h:641
ap_directive_t * parent
Definition: http_config.h:340
void ap_reserve_module_slots(int count)
apr_status_t(* getch)(char *ch, void *param)
Definition: http_config.h:277
server_rec * server
Definition: http_config.h:322
const char * ap_setup_prelinked_modules(process_rec *process)
This structure is used to assign symbol names to module pointers.
Definition: http_config.h:972
ap_configfile_t * config_file
Definition: http_config.h:312
int ap_exists_directive(apr_pool_t *p, const char *name)
apr_pool_t * p
Config Tree Package.
const ap_directive_t * err_directive
Definition: http_config.h:336
Definition: http_config.h:63
const char * ap_soak_end_container(cmd_parms *cmd, const char *directive)
int ap_invoke_handler(request_rec *r)
const char * ap_build_config(cmd_parms *parms, apr_pool_t *conf_pool, apr_pool_t *temp_pool, ap_directive_t **conftree)
const char * name
Definition: http_config.h:285
A structure that represents the current request.
Definition: httpd.h:806
const char * errmsg
Definition: http_config.h:217
char * ap_server_root_relative(apr_pool_t *p, const char *fname)
unsigned line_number
Definition: http_config.h:287
Structure for handling HTTP methods.
Definition: httpd.h:651
struct module_struct * next
Definition: http_config.h:374
#define AP_DECLARE_DATA
Definition: macros.h:15
#define ap_get_request_module_loglevel(r, i)
Definition: http_config.h:644
apr_status_t ap_open_htaccess(request_rec *r, const char *dir_name, const char *access_name, ap_configfile_t **conffile, const char **full_name)
dav_buffer const char * str
Definition: mod_dav.h:461
Definition: http_config.h:82
void ap_remove_loaded_module(module *mod)
AP_DECLARE_DATA module * ap_preloaded_modules[]
void ap_single_module_configure(apr_pool_t *p, server_rec *s, module *m)
int ap_process_config_tree(server_rec *s, ap_directive_t *conftree, apr_pool_t *p, apr_pool_t *ptemp)
struct apr_table_t apr_table_t
Definition: apr_tables.h:56
apr_pool_t * pool
Definition: http_config.h:317
const command_rec * ap_find_command_in_modules(const char *cmd_name, module **mod)
long apr_int64_t
Definition: apr.h:371
const char * name
Definition: mod_dav.h:726
ap_method_list_t * xlimited
Definition: http_config.h:309
Definition: http_config.h:62
Definition: http_config.h:52
struct apr_pool_t apr_pool_t
Definition: apr_pools.h:60
#define ap_get_server_module_loglevel(s, i)
Definition: http_config.h:635
const command_rec * cmd
Definition: http_config.h:331
char * ap_runtime_dir_relative(apr_pool_t *p, const char *fname)
Definition: http_config.h:355
typedef void(APR_THREAD_FUNC *PFN_HSE_IO_COMPLETION)(EXTENSION_CONTROL_BLOCK *ecb
int apr_status_t
Definition: apr_errno.h:44
request_rec * r
Definition: mod_dav.h:515
#define ap_get_conn_module_loglevel(c, i)
Definition: http_config.h:638
Definition: http_config.h:59
apr_status_t(* getstr)(void *buf, apr_size_t bufsiz, void *param)
Definition: http_config.h:279
void ap_fixup_virtual_hosts(apr_pool_t *p, server_rec *main_server)
ap_conf_vector_t * ap_create_request_config(apr_pool_t *p)
const char * ap_set_string_slot(cmd_parms *cmd, void *struct_ptr, const char *arg)
int pre_config(apr_pool_t *pconf, apr_pool_t *plog, apr_pool_t *ptemp)
const command_rec * ap_find_command(const char *name, const command_rec *cmds)
apr_status_t ap_cfg_getline(char *buf, apr_size_t bufsize, ap_configfile_t *cfp)
int post_config(apr_pool_t *pconf, apr_pool_t *plog, apr_pool_t *ptemp, server_rec *s)
struct ap_conf_vector_t ap_conf_vector_t
Definition: http_config.h:519
const char * ap_set_string_slot_lower(cmd_parms *cmd, void *struct_ptr, const char *arg)
Definition: httpd.h:1303
apr_int64_t limited
Definition: http_config.h:305
char * path
Definition: http_config.h:329
const char * ap_set_flag_slot(cmd_parms *cmd, void *struct_ptr, int arg)
void child_init(apr_pool_t *pchild, server_rec *s)
ap_conf_vector_t * ap_merge_per_dir_configs(apr_pool_t *p, ap_conf_vector_t *base, ap_conf_vector_t *new_conf)
int version
Definition: http_config.h:359
Definition: http_config.h:275
void * ap_retained_data_get(const char *key)
cmd_how
Definition: http_config.h:49
void ap_reset_module_loglevels(struct ap_logconf *l, int val)
Definition: http_config.h:51
apr_status_t ap_cfg_getc(char *ch, ap_configfile_t *cfp)
enum cmd_how args_how
Definition: http_config.h:214