Apache HTTPD
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
34extern "C" {
35#endif
36
37/*
38 * The central data structures around here...
39 */
40
41/* Command dispatch structures... */
42
68
75
76#if defined(AP_HAVE_DESIGNATED_INITIALIZER) || defined(DOXYGEN)
77
82typedef 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
106# define AP_RAW_ARGS func.raw_args
108# define AP_TAKE_ARGV func.take_argv
110# define AP_TAKE1 func.take1
112# define AP_TAKE2 func.take2
114# define AP_TAKE3 func.take3
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, RAW_ARGS, help }
122# define AP_INIT_RAW_ARGS(directive, func, mconfig, where, help) \
123 { directive, { .raw_args=func }, mconfig, where, RAW_ARGS, help }
125# define AP_INIT_TAKE_ARGV(directive, func, mconfig, where, help) \
126 { directive, { .take_argv=func }, mconfig, where, TAKE_ARGV, help }
128# define AP_INIT_TAKE1(directive, func, mconfig, where, help) \
129 { directive, { .take1=func }, mconfig, where, TAKE1, help }
131# define AP_INIT_ITERATE(directive, func, mconfig, where, help) \
132 { directive, { .take1=func }, mconfig, where, ITERATE, help }
134# define AP_INIT_TAKE2(directive, func, mconfig, where, help) \
135 { directive, { .take2=func }, mconfig, where, TAKE2, help }
137# define AP_INIT_TAKE12(directive, func, mconfig, where, help) \
138 { directive, { .take2=func }, mconfig, where, TAKE12, help }
140# define AP_INIT_ITERATE2(directive, func, mconfig, where, help) \
141 { directive, { .take2=func }, mconfig, where, ITERATE2, help }
143# define AP_INIT_TAKE13(directive, func, mconfig, where, help) \
144 { directive, { .take3=func }, mconfig, where, TAKE13, help }
146# define AP_INIT_TAKE23(directive, func, mconfig, where, help) \
147 { directive, { .take3=func }, mconfig, where, TAKE23, help }
149# define AP_INIT_TAKE123(directive, func, mconfig, where, help) \
150 { directive, { .take3=func }, mconfig, where, TAKE123, help }
152# define AP_INIT_TAKE3(directive, func, mconfig, where, help) \
153 { directive, { .take3=func }, mconfig, where, TAKE3, help }
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
160typedef 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, RAW_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)
256
264#define DECLINE_CMD "\a\b"
265
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
332
336#define AP_MODULE_FLAG_NONE (0)
337#define AP_MODULE_FLAG_ALWAYS_MERGE (1 << 0)
338
344typedef struct module_struct module;
355
357 const char *name;
360
365
368 unsigned long magic;
369
374 void (*rewrite_args) (process_rec *process);
381 void *(*create_dir_config) (apr_pool_t *p, char *dir);
389 void *(*merge_dir_config) (apr_pool_t *p, void *base_conf, void *new_conf);
396 void *(*create_server_config) (apr_pool_t *p, server_rec *s);
404 void *(*merge_server_config) (apr_pool_t *p, void *base_conf,
405 void *new_conf);
406
410
418
420 int flags;
421};
422
431#ifdef AP_MAYBE_UNUSED
432#elif defined(__GNUC__)
433# define AP_MAYBE_UNUSED(x) x __attribute__((unused))
434#elif defined(__LCLINT__)
435# define AP_MAYBE_UNUSED(x) /*@unused@*/ x
436#else
437# define AP_MAYBE_UNUSED(x) x
438#endif
439
453#define APLOG_USE_MODULE(foo) \
454 extern module AP_MODULE_DECLARE_DATA foo##_module; \
455 AP_MAYBE_UNUSED(static int * const aplog_module_index) = &(foo##_module.module_index)
456
464#define AP_DECLARE_MODULE(foo) \
465 APLOG_USE_MODULE(foo); \
466 module AP_MODULE_DECLARE_DATA foo##_module
467
483#define STANDARD_MODULE_STUFF this_module_needs_to_be_ported_to_apache_2_0
484
486#define STANDARD20_MODULE_STUFF MODULE_MAGIC_NUMBER_MAJOR, \
487 MODULE_MAGIC_NUMBER_MINOR, \
488 -1, \
489 __FILE__, \
490 NULL, \
491 NULL, \
492 MODULE_MAGIC_COOKIE, \
493 NULL /* rewrite args spot */
494
496#define MPM20_MODULE_STUFF MODULE_MAGIC_NUMBER_MAJOR, \
497 MODULE_MAGIC_NUMBER_MINOR, \
498 -1, \
499 __FILE__, \
500 NULL, \
501 NULL, \
502 MODULE_MAGIC_COOKIE
503
506/* CONFIGURATION VECTOR FUNCTIONS */
507
510
520 const module *m);
521
531 void *val);
532
536#define AP_MODULE_FLAGS_MMN_MAJOR 20120211
537#define AP_MODULE_FLAGS_MMN_MINOR 70
538#define AP_MODULE_HAS_FLAGS(m) \
539 AP_MODULE_MAGIC_AT_LEAST(AP_MODULE_FLAGS_MMN_MAJOR, \
540 AP_MODULE_FLAGS_MMN_MINOR)
547
548#if !defined(AP_DEBUG)
549
550#define ap_get_module_config(v,m) \
551 (((void **)(v))[(m)->module_index])
552#define ap_set_module_config(v,m,val) \
553 ((((void **)(v))[(m)->module_index]) = (val))
554
555#endif /* AP_DEBUG */
556
557
565
572AP_DECLARE(int) ap_get_conn_module_loglevel(const conn_rec *c, int index);
573
583 const server_rec *s,
584 int index);
585
593
602 int index, int level);
603
604#if !defined(AP_DEBUG)
605
606#define ap_get_conn_logconf(c) \
607 ((c)->log ? (c)->log : \
608 &(c)->base_server->log)
609
610#define ap_get_conn_server_logconf(c,s) \
611 ( ( (c)->log != &(c)->base_server->log && (c)->log != NULL ) ? \
612 (c)->log : \
613 &(s)->log )
614
615#define ap_get_request_logconf(r) \
616 ((r)->log ? (r)->log : \
617 (r)->connection->log ? (r)->connection->log : \
618 &(r)->server->log)
619
620#define ap_get_module_loglevel(l,i) \
621 (((i) < 0 || (l)->module_levels == NULL || (l)->module_levels[i] < 0) ? \
622 (l)->level : \
623 (l)->module_levels[i])
624
625#define ap_get_server_module_loglevel(s,i) \
626 (ap_get_module_loglevel(&(s)->log,i))
627
628#define ap_get_conn_module_loglevel(c,i) \
629 (ap_get_module_loglevel(ap_get_conn_logconf(c),i))
630
631#define ap_get_conn_server_module_loglevel(c,s,i) \
632 (ap_get_module_loglevel(ap_get_conn_server_logconf(c,s),i))
633
634#define ap_get_request_module_loglevel(r,i) \
635 (ap_get_module_loglevel(ap_get_request_logconf(r),i))
636
637#endif /* AP_DEBUG */
638
645
654 void *struct_ptr,
655 const char *arg);
656
665 void *struct_ptr,
666 const char *arg);
667
674AP_DECLARE(const char *) ap_parse_log_level(const char *str, int *val);
675
687
697 void *struct_ptr,
698 const char *arg);
707 void *struct_ptr,
708 int arg);
717 void *struct_ptr,
718 int arg);
727 void *struct_ptr,
728 const char *arg);
742 void *struct_ptr,
743 const char *arg);
751
759
760/* Finally, the hook for dynamically loading modules in... */
761
769 const char *s);
770
787 const char *s);
798AP_DECLARE(const char *) ap_find_module_name(module *m);
804AP_DECLARE(const char *) ap_find_module_short_name(int module_index);
810AP_DECLARE(module *) ap_find_linked_module(const char *name);
811
819 apr_pool_t *p, const char *name);
820
831 const char *descr,
832 void *param,
833 apr_status_t (*getc_func) (char *ch, void *param),
834 apr_status_t (*gets_func) (void *buf, apr_size_t bufsiz, void *param),
835 apr_status_t (*close_func) (void *param));
836
846
854
861
872
882AP_DECLARE(const char *) ap_soak_end_container(cmd_parms *cmd, char *directive);
883
899 cmd_parms *parms,
900 ap_directive_t **current,
901 ap_directive_t **curr_parent,
902 char *orig_directive);
903
914AP_DECLARE(const char *) ap_build_config(cmd_parms *parms,
915 apr_pool_t *conf_pool,
917 ap_directive_t **conftree);
918
926AP_DECLARE(const char *) ap_walk_config(ap_directive_t *conftree,
927 cmd_parms *parms,
929
942 const char *(*cb)(ap_dir_match_t *w, const char *fname), void *ctx)
943 __attribute__((nonnull(1,3)));
944
956 unsigned forbidden);
957
958#define NOT_IN_VIRTUALHOST 0x01
959#define NOT_IN_LIMIT 0x02
960#define NOT_IN_DIRECTORY 0x04
961#define NOT_IN_LOCATION 0x08
962#define NOT_IN_FILES 0x10
963#define NOT_IN_HTACCESS 0x20
964#define NOT_IN_PROXY 0x40
966#define NOT_IN_DIR_LOC_FILE (NOT_IN_DIRECTORY|NOT_IN_LOCATION|NOT_IN_FILES)
968#define NOT_IN_DIR_CONTEXT (NOT_IN_LIMIT|NOT_IN_DIR_LOC_FILE|NOT_IN_PROXY)
970#define GLOBAL_ONLY (NOT_IN_VIRTUALHOST|NOT_IN_DIR_CONTEXT)
971
977typedef struct {
978 const char *name;
979 module *modp;
981
986AP_DECLARE_DATA extern module *ap_top_module;
987
992AP_DECLARE_DATA extern module *ap_prelinked_modules[];
1002AP_DECLARE_DATA extern module *ap_preloaded_modules[];
1007AP_DECLARE_DATA extern module **ap_loaded_modules;
1008
1009/* For mod_so.c... */
1016 module *m);
1017
1018/* For http_main.c... */
1023AP_DECLARE(const char *) ap_setup_prelinked_modules(process_rec *process);
1024
1030AP_DECLARE(void) ap_show_directives(void);
1031
1038AP_DECLARE(int) ap_exists_directive(apr_pool_t *p, const char *name);
1039
1043AP_DECLARE(void) ap_show_modules(void);
1044
1049AP_DECLARE(const char *) ap_show_mpm(void);
1050
1061 const char *config_name,
1062 ap_directive_t **conftree);
1063
1069
1076
1084
1092
1100AP_DECLARE(void) ap_reserve_module_slots_directive(const char *directive);
1101
1102/* For http_request.c... */
1103
1110
1117
1127
1135 const struct ap_logconf *old);
1136
1143AP_DECLARE(void) ap_merge_log_config(const struct ap_logconf *old_conf,
1144 struct ap_logconf *new_conf);
1145
1146/* For http_connection.c... */
1153
1154/* For http_core.c... (&lt;Directory&gt; command and virtual hosts) */
1155
1169 int override,
1172 const char *path,
1173 const char *access_name);
1174
1184 const char *hostname,
1187
1197 const char *fname,
1198 ap_directive_t **conftree,
1199 apr_pool_t *p,
1200 apr_pool_t *ptemp);
1201
1213 const char *fname,
1214 ap_directive_t **conftree,
1215 apr_pool_t *p,
1216 apr_pool_t *ptemp,
1217 int optional);
1218
1228 ap_directive_t *conftree,
1229 apr_pool_t *p,
1230 apr_pool_t *ptemp);
1231
1238AP_DECLARE(void *) ap_retained_data_create(const char *key, apr_size_t size);
1239
1245AP_DECLARE(void *) ap_retained_data_get(const char *key);
1246
1247/* Module-method dispatchers, also for http_request.c */
1255
1256/* for mod_perl */
1257
1266
1277 module **mod);
1278
1292 const char *section,
1293 module *mod, apr_pool_t *pconf);
1294
1295 /* Hooks */
1296
1303AP_DECLARE_HOOK(int,header_parser,(request_rec *r))
1304
1305
1314 apr_pool_t *ptemp))
1315
1316
1327
1328
1339
1361
1371AP_DECLARE_HOOK(int,open_logs,(apr_pool_t *pconf,apr_pool_t *plog,
1373
1381
1389
1402AP_DECLARE_HOOK(int,quick_handler,(request_rec *r, int lookup_uri))
1403
1410AP_DECLARE_HOOK(void,optional_fn_retrieve,(void))
1411
1427AP_DECLARE_HOOK(apr_status_t,open_htaccess,
1428 (request_rec *r, const char *dir_name, const char *access_name,
1429 ap_configfile_t **conffile, const char **full_name))
1430
1434apr_status_t ap_open_htaccess(request_rec *r, const char *dir_name,
1435 const char *access_name, ap_configfile_t **conffile,
1436 const char **full_name);
1437
1445
1446#ifdef __cplusplus
1447}
1448#endif
1449
1450#endif /* !APACHE_HTTP_CONFIG_H */
Symbol export macros and hook functions.
#define AP_DECLARE_DATA
Definition ap_config.h:89
#define AP_DECLARE_NONSTD(type)
Definition ap_config.h:77
#define AP_DECLARE(type)
Definition ap_config.h:67
#define AP_DECLARE_HOOK(ret, name, args)
Definition ap_hooks.h:74
APR Table library.
const command_rec * ap_find_command_in_modules(const char *cmd_name, module **mod)
Definition config.c:1066
const char * ap_init_virtual_host(apr_pool_t *p, const char *hostname, server_rec *main_server, server_rec **ps)
Definition config.c:2083
ap_conf_vector_t * ap_merge_per_dir_configs(apr_pool_t *p, ap_conf_vector_t *base, ap_conf_vector_t *new_conf)
Definition config.c:285
void * ap_set_config_vectors(server_rec *server, ap_conf_vector_t *section_vector, const char *section, module *mod, apr_pool_t *pconf)
Definition config.c:1082
ap_conf_vector_t * ap_create_conn_config(apr_pool_t *p)
Definition config.c:361
const command_rec * ap_find_command(const char *name, const command_rec *cmds)
Definition config.c:1053
int ap_parse_htaccess(ap_conf_vector_t **result, request_rec *r, int override, int override_opts, apr_table_t *override_list, const char *d, const char *access_names)
Definition config.c:1995
int ap_invoke_handler(request_rec *r)
Definition config.c:389
ap_conf_vector_t * ap_create_per_dir_config(apr_pool_t *p)
Definition config.c:366
static apr_pool_t * pconf
Definition event.c:441
request_rec int int apr_table_t * override_list
void ap_register_hooks(module *m, apr_pool_t *p)
Definition config.c:489
const char * ap_parse_log_level(const char *str, int *val)
Definition log.c:1983
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, char *orig_directive)
Definition config.c:1251
cmd_how
Definition http_config.h:49
char * ap_runtime_dir_relative(apr_pool_t *p, const char *fname)
Definition config.c:1610
#define ap_get_module_config(v, m)
ap_conf_vector_t * ap_create_request_config(apr_pool_t *p)
Definition config.c:356
apr_status_t ap_pool_cleanup_set_null(void *data)
Definition util.c:2710
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)
Definition config.c:1986
ap_dir_match_t * ap_dir_cfgmatch(cmd_parms *cmd, int flags, const char *(*cb)(ap_dir_match_t *w, const char *fname), void *ctx) __attribute__((nonnull(1
const command_rec * cmds
const char * ap_setup_prelinked_modules(process_rec *process)
Definition config.c:763
ap_module_symbol_t ap_prelinked_module_symbols[]
const char * ap_build_config(cmd_parms *parms, apr_pool_t *conf_pool, apr_pool_t *temp_pool, ap_directive_t **conftree)
Definition config.c:1387
void ap_set_module_loglevel(apr_pool_t *p, struct ap_logconf *l, int index, int level)
Definition config.c:1570
#define ap_get_request_module_loglevel(r, i)
const char *(* cmd_func)()
const char * ap_set_string_slot_lower(cmd_parms *cmd, void *struct_ptr, const char *arg)
Definition config.c:1499
const char * ap_pcfg_strerror(apr_pool_t *p, ap_configfile_t *cfp, apr_status_t rc)
Definition util.c:1063
int ap_cfg_closefile(ap_configfile_t *cfp)
Definition util.c:931
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)
Definition config.c:1902
void ap_remove_loaded_module(module *mod)
Definition config.c:733
void ap_run_rewrite_args(process_rec *process)
Definition config.c:2379
apr_status_t ap_pcfg_openfile(ap_configfile_t **ret_cfg, apr_pool_t *p, const char *name)
Definition util.c:957
const char * ap_soak_end_container(cmd_parms *cmd, char *directive)
Definition config.c:1629
struct ap_conf_vector_t ap_conf_vector_t
#define ap_get_server_module_loglevel(s, i)
ap_conf_vector_t * section_vector
int ap_exists_directive(apr_pool_t *p, const char *name)
Definition config.c:2509
#define ap_get_conn_server_module_loglevel(c, s, i)
const char * ap_set_deprecated(cmd_parms *cmd, void *struct_ptr, const char *arg)
Definition config.c:1557
int ap_get_module_flags(const module *m)
Definition util_debug.c:110
void ap_show_directives(void)
Definition config.c:2482
ap_conf_vector_t * base
void ap_fixup_virtual_hosts(apr_pool_t *p, server_rec *main_server)
Definition config.c:2163
const char * ap_set_flag_slot_char(cmd_parms *cmd, void *struct_ptr, int arg)
Definition config.c:1523
const char * ap_set_int_slot(cmd_parms *cmd, void *struct_ptr, const char *arg)
Definition config.c:1480
int ap_process_config_tree(server_rec *s, ap_directive_t *conftree, apr_pool_t *p, apr_pool_t *ptemp)
Definition config.c:1956
char * ap_server_root_relative(apr_pool_t *p, const char *fname)
Definition config.c:1594
#define ap_get_conn_module_loglevel(c, i)
const char * ap_set_string_slot(cmd_parms *cmd, void *struct_ptr, const char *arg)
Definition config.c:1469
const char * ap_find_module_short_name(int module_index)
Definition config.c:823
#define ap_set_module_config(v, m, val)
apr_status_t ap_cfg_getc(char *ch, ap_configfile_t *cfp)
Definition util.c:1055
void ap_reserve_module_slots(int count)
Definition config.c:2549
void ap_remove_module(module *m)
Definition config.c:662
const char * ap_add_module(module *m, apr_pool_t *p, const char *s)
Definition config.c:558
void ap_merge_log_config(const struct ap_logconf *old_conf, struct ap_logconf *new_conf)
Definition config.c:2140
request_rec int int override_opts
const char * hostname
void * ap_retained_data_create(const char *key, apr_size_t size)
Definition config.c:2527
const char * ap_add_loaded_module(module *mod, apr_pool_t *p, const char *s)
Definition config.c:703
int ap_method_is_limited(cmd_parms *cmd, const char *method)
Definition config.c:472
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))
request_rec int int apr_table_t const char * path
server_rec * ap_read_config(process_rec *process, apr_pool_t *temp_pool, const char *config_name, ap_directive_t **conftree)
Definition config.c:2294
const char * ap_set_flag_slot(cmd_parms *cmd, void *struct_ptr, int arg)
Definition config.c:1512
ap_conf_vector_t const char * section
void ap_single_module_configure(apr_pool_t *p, server_rec *s, module *m)
Definition config.c:2367
const char server_rec server_rec ** ps
request_rec * r
void * ap_retained_data_get(const char *key)
Definition config.c:2519
const char * ap_set_file_slot(cmd_parms *cmd, void *struct_ptr, const char *arg)
Definition config.c:1535
const char * ap_walk_config(ap_directive_t *conftree, cmd_parms *parms, ap_conf_vector_t *section_vector)
Definition config.c:1360
apr_status_t ap_cfg_getline(char *buf, apr_size_t bufsize, ap_configfile_t *cfp)
Definition util.c:1198
const char * ap_find_module_name(module *m)
Definition config.c:818
request_rec int int apr_table_t const char const char * access_name
const char * ap_process_resource_config(server_rec *s, const char *fname, ap_directive_t **conftree, apr_pool_t *p, apr_pool_t *ptemp)
Definition config.c:1847
void ap_reset_module_loglevels(struct ap_logconf *l, int val)
Definition config.c:1564
ap_conf_vector_t ap_conf_vector_t * new_conf
void ap_reserve_module_slots_directive(const char *directive)
Definition config.c:2554
const char * ap_show_mpm(void)
Definition mpm_common.c:548
void ap_show_modules(void)
Definition config.c:2500
const char server_rec * main_server
struct ap_logconf * ap_new_log_config(apr_pool_t *p, const struct ap_logconf *old)
Definition config.c:2123
@ RAW_ARGS
Definition http_config.h:50
@ TAKE12
Definition http_config.h:61
@ TAKE1
Definition http_config.h:51
@ TAKE23
Definition http_config.h:63
@ TAKE3
Definition http_config.h:62
@ TAKE_ARGV
Definition http_config.h:66
@ TAKE2
Definition http_config.h:52
@ FLAG
Definition http_config.h:59
@ TAKE123
Definition http_config.h:64
@ TAKE13
Definition http_config.h:65
@ ITERATE
Definition http_config.h:53
@ ITERATE2
Definition http_config.h:56
@ NO_ARGS
Definition http_config.h:60
#define AP_CORE_DECLARE
Definition httpd.h:381
const unsigned char * buf
Definition util_md5.h:50
void const char * arg
Definition http_vhost.h:63
unsigned int count
Definition apr_md5.h:152
apr_brigade_flush void * ctx
const char apr_ssize_t int flags
Definition apr_encode.h:168
apr_memcache_server_t * server
apr_pool_t * temp_pool
apr_redis_t * rc
Definition apr_redis.h:173
const char * ap_check_cmd_context(cmd_parms *cmd, unsigned forbidden)
Definition core.c:1301
apr_size_t size
apr_uint32_t val
Definition apr_atomic.h:66
char apr_size_t bufsize
Definition apr_errno.h:53
int apr_status_t
Definition apr_errno.h:44
const char * key
void * data
const char * fname
apr_array_header_t ** result
apr_pool_t int argc
Definition apr_getopt.h:104
apr_vformatter_buff_t * c
Definition apr_lib.h:175
apr_int32_t apr_int32_t on
apr_uint32_t apr_pool_t apr_uint32_t apr_pollset_method_e method
Definition apr_poll.h:195
const char apr_status_t(*) apr_pool_t *poo __attribute__)((nonnull(2, 4)))
Definition apr_pools.h:567
apr_dir_t * dir
const char * s
Definition apr_strings.h:95
const void * m
apr_cmdtype_e cmd
const char const char *const * args
static apr_pool_t * pchild
Definition h2_mplx.c:74
apr_pool_t * p
Definition md_event.c:32
@ cmd_name
Definition mod_dbd.c:74
static int check_config(apr_pool_t *pconf, apr_pool_t *plog, apr_pool_t *ptemp, server_rec *s)
Definition mod_info.c:992
const char * argv[3]
static void child_init(apr_pool_t *p, server_rec *s)
Definition mod_proxy.c:3245
static int post_config(apr_pool_t *p, apr_pool_t *plog, apr_pool_t *ptemp, server_rec *s)
static int pre_config(apr_pool_t *pconf, apr_pool_t *plog, apr_pool_t *ptemp)
char * name
apr_status_t(* getch)(char *ch, void *param)
unsigned line_number
const char * name
apr_status_t(* close)(void *param)
apr_status_t(* getstr)(void *buf, apr_size_t bufsiz, void *param)
Structure used to build the config tree.
Structure for handling HTTP methods.
Definition httpd.h:643
This structure is used to assign symbol names to module pointers.
const char * name
ap_directive_t * directive
apr_table_t * override_list
apr_int64_t limited
apr_pool_t * pool
const ap_directive_t * err_directive
ap_configfile_t * config_file
apr_array_header_t * limited_xmethods
apr_pool_t * temp_pool
server_rec * server
const command_rec * cmd
struct ap_conf_vector_t * context
ap_method_list_t * xlimited
const char * errmsg
const char * name
enum cmd_how args_how
Structure to store things which are per connection.
Definition httpd.h:1152
void(* rewrite_args)(process_rec *process)
void(* register_hooks)(apr_pool_t *p)
unsigned long magic
const char * name
struct module_struct * next
const command_rec * cmds
void * dynamic_load_handle
A structure that represents one process.
Definition httpd.h:829
A structure that represents the current request.
Definition httpd.h:845
A structure to store information for each virtual server.
Definition httpd.h:1322
Config Tree Package.
#define str