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 
341 typedef struct module_struct module;
342 struct module_struct {
346  int version;
351  int module_index;
352 
354  const char *name;
357 
362 
365  unsigned long magic;
366 
371  void (*rewrite_args) (process_rec *process);
378  void *(*create_dir_config) (apr_pool_t *p, char *dir);
386  void *(*merge_dir_config) (apr_pool_t *p, void *base_conf, void *new_conf);
393  void *(*create_server_config) (apr_pool_t *p, server_rec *s);
401  void *(*merge_server_config) (apr_pool_t *p, void *base_conf,
402  void *new_conf);
403 
406  const command_rec *cmds;
407 
415 };
416 
425 #ifdef AP_MAYBE_UNUSED
426 #elif defined(__GNUC__)
427 # define AP_MAYBE_UNUSED(x) x __attribute__((unused))
428 #elif defined(__LCLINT__)
429 # define AP_MAYBE_UNUSED(x) /*@unused@*/ x
430 #else
431 # define AP_MAYBE_UNUSED(x) x
432 #endif
433 
447 #define APLOG_USE_MODULE(foo) \
448  extern module AP_MODULE_DECLARE_DATA foo##_module; \
449  AP_MAYBE_UNUSED(static int * const aplog_module_index) = &(foo##_module.module_index)
450 
458 #define AP_DECLARE_MODULE(foo) \
459  APLOG_USE_MODULE(foo); \
460  module AP_MODULE_DECLARE_DATA foo##_module
461 
477 #define STANDARD_MODULE_STUFF this_module_needs_to_be_ported_to_apache_2_0
478 
480 #define STANDARD20_MODULE_STUFF MODULE_MAGIC_NUMBER_MAJOR, \
481  MODULE_MAGIC_NUMBER_MINOR, \
482  -1, \
483  __FILE__, \
484  NULL, \
485  NULL, \
486  MODULE_MAGIC_COOKIE, \
487  NULL /* rewrite args spot */
488 
490 #define MPM20_MODULE_STUFF MODULE_MAGIC_NUMBER_MAJOR, \
491  MODULE_MAGIC_NUMBER_MINOR, \
492  -1, \
493  __FILE__, \
494  NULL, \
495  NULL, \
496  MODULE_MAGIC_COOKIE
500 /* CONFIGURATION VECTOR FUNCTIONS */
501 
503 typedef struct ap_conf_vector_t ap_conf_vector_t;
504 
514  const module *m);
515 
525  void *val);
526 
527 #if !defined(AP_DEBUG)
528 
529 #define ap_get_module_config(v,m) \
530  (((void **)(v))[(m)->module_index])
531 #define ap_set_module_config(v,m,val) \
532  ((((void **)(v))[(m)->module_index]) = (val))
533 
534 #endif /* AP_DEBUG */
535 
543 AP_DECLARE(int) ap_get_server_module_loglevel(const server_rec *s, int index);
544 
551 AP_DECLARE(int) ap_get_conn_module_loglevel(const conn_rec *c, int index);
552 
562  const server_rec *s,
563  int index);
564 
572 
581  int index, int level);
582 
583 #if !defined(AP_DEBUG)
584 
585 #define ap_get_conn_logconf(c) \
586  ((c)->log ? (c)->log : \
587  &(c)->base_server->log)
588 
589 #define ap_get_conn_server_logconf(c,s) \
590  ( ( (c)->log != &(c)->base_server->log && (c)->log != NULL ) ? \
591  (c)->log : \
592  &(s)->log )
593 
594 #define ap_get_request_logconf(r) \
595  ((r)->log ? (r)->log : \
596  (r)->connection->log ? (r)->connection->log : \
597  &(r)->server->log)
598 
599 #define ap_get_module_loglevel(l,i) \
600  (((i) < 0 || (l)->module_levels == NULL || (l)->module_levels[i] < 0) ? \
601  (l)->level : \
602  (l)->module_levels[i])
603 
604 #define ap_get_server_module_loglevel(s,i) \
605  (ap_get_module_loglevel(&(s)->log,i))
607 #define ap_get_conn_module_loglevel(c,i) \
608  (ap_get_module_loglevel(ap_get_conn_logconf(c),i))
609 
610 #define ap_get_conn_server_module_loglevel(c,s,i) \
611  (ap_get_module_loglevel(ap_get_conn_server_logconf(c,s),i))
612 
613 #define ap_get_request_module_loglevel(r,i) \
614  (ap_get_module_loglevel(ap_get_request_logconf(r),i))
615 
616 #endif /* AP_DEBUG */
623 AP_DECLARE(void) ap_reset_module_loglevels(struct ap_logconf *l, int val);
624 
633  void *struct_ptr,
634  const char *arg);
635 
643 AP_DECLARE_NONSTD(const char *) ap_set_int_slot(cmd_parms *cmd,
644  void *struct_ptr,
645  const char *arg);
646 
653 AP_DECLARE(const char *) ap_parse_log_level(const char *str, int *val);
654 
665 AP_DECLARE(int) ap_method_is_limited(cmd_parms *cmd, const char *method);
666 
676  void *struct_ptr,
677  const char *arg);
685 AP_DECLARE_NONSTD(const char *) ap_set_flag_slot(cmd_parms *cmd,
686  void *struct_ptr,
687  int arg);
696  void *struct_ptr,
697  int arg);
705 AP_DECLARE_NONSTD(const char *) ap_set_file_slot(cmd_parms *cmd,
706  void *struct_ptr,
707  const char *arg);
721  void *struct_ptr,
722  const char *arg);
729 AP_DECLARE(char *) ap_server_root_relative(apr_pool_t *p, const char *fname);
730 
737 AP_DECLARE(char *) ap_runtime_dir_relative(apr_pool_t *p, const char *fname);
738 
739 /* Finally, the hook for dynamically loading modules in... */
740 
747 AP_DECLARE(const char *) ap_add_module(module *m, apr_pool_t *p,
748  const char *s);
749 
765 AP_DECLARE(const char *) ap_add_loaded_module(module *mod, apr_pool_t *p,
766  const char *s);
777 AP_DECLARE(const char *) ap_find_module_name(module *m);
783 AP_DECLARE(const char *) ap_find_module_short_name(int module_index);
790 
798  apr_pool_t *p, const char *name);
799 
810  const char *descr,
811  void *param,
812  apr_status_t (*getc_func) (char *ch, void *param),
813  apr_status_t (*gets_func) (void *buf, apr_size_t bufsiz, void *param),
814  apr_status_t (*close_func) (void *param));
815 
825 
833 
840 
850  apr_status_t rc);
851 
861 AP_DECLARE(const char *) ap_soak_end_container(cmd_parms *cmd, char *directive);
862 
877  apr_pool_t *temp_pool,
878  cmd_parms *parms,
879  ap_directive_t **current,
880  ap_directive_t **curr_parent,
881  char *orig_directive);
882 
893 AP_DECLARE(const char *) ap_build_config(cmd_parms *parms,
894  apr_pool_t *conf_pool,
895  apr_pool_t *temp_pool,
896  ap_directive_t **conftree);
897 
905 AP_DECLARE(const char *) ap_walk_config(ap_directive_t *conftree,
906  cmd_parms *parms,
907  ap_conf_vector_t *section_vector);
908 
919 AP_DECLARE(const char *) ap_check_cmd_context(cmd_parms *cmd,
920  unsigned forbidden);
921 
922 #define NOT_IN_VIRTUALHOST 0x01
923 #define NOT_IN_LIMIT 0x02
924 #define NOT_IN_DIRECTORY 0x04
925 #define NOT_IN_LOCATION 0x08
926 #define NOT_IN_FILES 0x10
927 #define NOT_IN_HTACCESS 0x20
928 #define NOT_IN_PROXY 0x40
930 #define NOT_IN_DIR_LOC_FILE (NOT_IN_DIRECTORY|NOT_IN_LOCATION|NOT_IN_FILES|NOT_IN_PROXY)
932 #define GLOBAL_ONLY (NOT_IN_VIRTUALHOST|NOT_IN_LIMIT|NOT_IN_DIR_LOC_FILE)
939 typedef struct {
940  const char *name;
941  module *modp;
943 
949 
970 
971 /* For mod_so.c... */
978  module *m);
979 
980 /* For http_main.c... */
985 AP_DECLARE(const char *) ap_setup_prelinked_modules(process_rec *process);
986 
992 AP_DECLARE(void) ap_show_directives(void);
993 
997 AP_DECLARE(void) ap_show_modules(void);
998 
1003 AP_DECLARE(const char *) ap_show_mpm(void);
1004 
1014  apr_pool_t *temp_pool,
1015  const char *config_name,
1016  ap_directive_t **conftree);
1017 
1023 
1030 
1037  server_rec *main_server);
1038 
1045 AP_DECLARE(void) ap_reserve_module_slots(int count);
1046 
1054 AP_DECLARE(void) ap_reserve_module_slots_directive(const char *directive);
1055 
1056 /* For http_request.c... */
1057 
1064 
1071 
1079  ap_conf_vector_t *base,
1080  ap_conf_vector_t *new_conf);
1081 
1089  const struct ap_logconf *old);
1090 
1097 AP_DECLARE(void) ap_merge_log_config(const struct ap_logconf *old_conf,
1098  struct ap_logconf *new_conf);
1099 
1100 /* For http_connection.c... */
1107 
1108 /* For http_core.c... (&lt;Directory&gt; command and virtual hosts) */
1109 
1122  request_rec *r,
1123  int override,
1124  int override_opts,
1125  apr_table_t *override_list,
1126  const char *path,
1127  const char *access_name);
1128 
1138  const char *hostname,
1139  server_rec *main_server,
1140  server_rec **ps);
1141 
1151  const char *fname,
1152  ap_directive_t **conftree,
1153  apr_pool_t *p,
1154  apr_pool_t *ptemp);
1155 
1167  const char *fname,
1168  ap_directive_t **conftree,
1169  apr_pool_t *p,
1170  apr_pool_t *ptemp,
1171  int optional);
1172 
1182  ap_directive_t *conftree,
1183  apr_pool_t *p,
1184  apr_pool_t *ptemp);
1185 
1192 AP_DECLARE(void *) ap_retained_data_create(const char *key, apr_size_t size);
1193 
1199 AP_DECLARE(void *) ap_retained_data_get(const char *key);
1200 
1201 /* Module-method dispatchers, also for http_request.c */
1209 
1210 /* for mod_perl */
1211 
1218 AP_CORE_DECLARE(const command_rec *) ap_find_command(const char *name,
1219  const command_rec *cmds);
1220 
1230 AP_CORE_DECLARE(const command_rec *) ap_find_command_in_modules(const char *cmd_name,
1231  module **mod);
1232 
1245  ap_conf_vector_t *section_vector,
1246  const char *section,
1247  module *mod, apr_pool_t *pconf);
1248 
1249  /* Hooks */
1250 
1258 
1268  apr_pool_t *ptemp))
1269 
1280  apr_pool_t *ptemp, server_rec *s))
1281 
1293 
1304  apr_pool_t *ptemp,server_rec *s))
1305 
1316  apr_pool_t *ptemp,server_rec *s))
1317 
1324 AP_DECLARE_HOOK(void,child_init,(apr_pool_t *pchild, server_rec *s))
1325 
1333 
1346 AP_DECLARE_HOOK(int,quick_handler,(request_rec *r, int lookup_uri))
1347 
1355 
1372  (request_rec *r, const char *dir_name, const char *access_name,
1373  ap_configfile_t **conffile, const char **full_name))
1374 
1378 apr_status_t ap_open_htaccess(request_rec *r, const char *dir_name,
1379  const char *access_name, ap_configfile_t **conffile,
1380  const char **full_name);
1381 
1388 AP_DECLARE_NONSTD(apr_status_t) ap_pool_cleanup_set_null(void *data);
1389 
1390 #ifdef __cplusplus
1391 }
1392 #endif
1393 
1394 #endif /* !APACHE_HTTP_CONFIG_H */
1395 
const char * ap_find_module_name(module *m)
const command_rec * cmds
Definition: http_config.h:413
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:372
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
#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_soak_end_container(cmd_parms *cmd, char *directive)
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
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:358
apr_status_t(* close)(void *param)
Definition: http_config.h:281
A structure that represents one process.
Definition: httpd.h:789
const char * name
Definition: http_config.h:361
int handler(request_rec *r)
void ap_remove_module(module *m)
Structure to store things which are per connection.
Definition: httpd.h:1110
void(* register_hooks)(apr_pool_t *p)
Definition: http_config.h:421
dav_buffer apr_size_t size
Definition: mod_dav.h:461
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:378
int minor_version
Definition: http_config.h:356
void * info
Definition: http_config.h:297
void ap_show_modules(void)
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)
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:1302
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:363
#define ap_get_module_config(v, m)
Definition: http_config.h:536
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:538
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)
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:617
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:946
ap_configfile_t * config_file
Definition: http_config.h:312
apr_pool_t * p
Config Tree Package.
const ap_directive_t * err_directive
Definition: http_config.h:336
Definition: http_config.h:63
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:805
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:368
#define AP_DECLARE_DATA
Definition: macros.h:15
#define ap_get_request_module_loglevel(r, i)
Definition: http_config.h:620
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:465
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:730
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:611
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:349
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:519
#define ap_get_conn_module_loglevel(c, i)
Definition: http_config.h:614
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:510
const char * ap_set_string_slot_lower(cmd_parms *cmd, void *struct_ptr, const char *arg)
Definition: httpd.h:1292
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:353
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