Lines Matching refs:conf

110 static int check_enabled(request_rec *r, policy_conf *conf,
113 if (conf && !conf->policy) {
116 if (conf && result != policy_ignore && conf->environment) {
117 const char *value = apr_table_get(r->subprocess_env, conf->environment);
120 if (conf->environment_log && !strcmp(value, conf->environment_log)) {
126 else if (conf->environment_ignore && !strcmp(value,
127 conf->environment_ignore)) {
194 policy_conf *conf = ap_get_module_config(f->r->per_dir_config,
196 policy_result result = check_enabled(f->r, conf, conf->type_action);
208 if (!conf->type_matches) {
215 for (i = 0; i < conf->type_matches->nelts; i++) {
217 ((char **) conf->type_matches->elts)[i])) {
227 if (conf->type_matches) {
229 for (i = 0; i < conf->type_matches->nelts; i++) {
231 ((char **) conf->type_matches->elts)[i], NULL);
244 f->r->content_type, types), conf->type_url, bb, HTTP_BAD_GATEWAY);
265 policy_conf *conf = ap_get_module_config(r->per_dir_config,
267 policy_result result = check_enabled(r, conf, conf->length_action);
275 conf->length_url, bb, HTTP_BAD_GATEWAY);
312 policy_conf *conf = ap_get_module_config(r->per_dir_config,
314 policy_result result = check_enabled(r, conf, conf->keepalive_action);
328 conf->keepalive_url, bb, HTTP_BAD_GATEWAY);
344 policy_conf *conf = ap_get_module_config(r->per_dir_config,
350 for (i = 0; i < conf->vary_matches->nelts; i++) {
352 ((char **) conf->vary_matches->elts)[i])) {
372 policy_conf *conf = ap_get_module_config(f->r->per_dir_config,
374 policy_result result = check_enabled(f->r, conf, conf->vary_action);
381 if (conf->vary_matches) {
383 for (i = 0; i < conf->vary_matches->nelts; i++) {
385 ((char **) conf->vary_matches->elts)[i], NULL);
391 conf->vary_url, bb, HTTP_BAD_GATEWAY);
415 policy_conf *conf = ap_get_module_config(f->r->per_dir_config,
417 policy_result result = check_enabled(f->r, conf, conf->validation_action);
465 handle_policy(f->r, result, error, conf->validation_url, bb,
491 policy_conf *conf = ap_get_module_config(f->r->per_dir_config,
493 policy_result result = check_enabled(f->r, conf, conf->conditional_action);
506 code, f->r->status), conf->conditional_url, bb,
532 policy_conf *conf = ap_get_module_config(f->r->per_dir_config,
534 policy_result result = check_enabled(f->r, conf, conf->nocache_action);
612 conf->nocache_url, bb, HTTP_BAD_GATEWAY);
640 policy_conf *conf = ap_get_module_config(f->r->per_dir_config,
642 policy_result result = check_enabled(f->r, conf, conf->maxage_action);
705 if (s_maxage_value < conf->maxage) {
713 s_maxage_value, conf->maxage), conf->maxage_url,
725 if (max_age_value < conf->maxage) {
733 max_age_value, conf->maxage), conf->maxage_url,
759 expires_header, conf->maxage),
760 conf->maxage_url, bb, HTTP_BAD_GATEWAY);
772 date_header, conf->maxage),
773 conf->maxage_url, bb, HTTP_BAD_GATEWAY);
777 else if (conf->maxage > 0 && fresh < conf->maxage) {
785 fresh, conf->maxage),
786 conf->maxage_url, bb, HTTP_BAD_GATEWAY);
797 conf->maxage_url, bb, HTTP_BAD_GATEWAY);
833 policy_conf *conf = ap_get_module_config(r->per_dir_config,
835 policy_result result = check_enabled(r, conf, conf->version_action);
839 if (r->proto_num > 0 && r->proto_num < conf->version_num) {
843 version_string(r->proto_num), conf->version),
844 conf->version_url, bb, HTTP_VERSION_NOT_SUPPORTED);
971 policy_conf *conf = dconf;
973 conf->policy = flag;
974 conf->policy_set = 1;
982 policy_conf *conf = dconf;
984 conf->environment = environment;
985 conf->environment_log = log;
986 conf->environment_ignore = ignore;
987 conf->environment_set = 1;
995 policy_conf *conf = dconf;
999 if (!conf->type_matches) {
1000 conf->type_matches = apr_array_make(cmd->pool, 2,
1003 match_ptr = apr_array_push(conf->type_matches);
1006 conf->type_set = 1;
1008 return parse_action(cmd->pool, action, &conf->type_action);
1013 policy_conf *conf = dconf;
1016 conf->type_url = ap_escape_html(cmd->pool, url);
1017 conf->type_url_set = 1;
1024 policy_conf *conf = dconf;
1026 conf->length_set = 1;
1028 return parse_action(cmd->pool, action, &conf->length_action);
1033 policy_conf *conf = dconf;
1035 conf->length_url = url;
1036 conf->length_url_set = 1;
1043 policy_conf *conf = dconf;
1045 conf->keepalive_set = 1;
1047 return parse_action(cmd->pool, action, &conf->keepalive_action);
1052 policy_conf *conf = dconf;
1054 conf->keepalive_url = url;
1055 conf->keepalive_url_set = 1;
1063 policy_conf *conf = dconf;
1067 if (!conf->vary_matches) {
1068 conf->vary_matches = apr_array_make(cmd->pool, 2,
1071 match_ptr = apr_array_push(conf->vary_matches);
1074 conf->vary_set = 1;
1076 return parse_action(cmd->pool, action, &conf->vary_action);
1081 policy_conf *conf = dconf;
1083 conf->vary_url = url;
1084 conf->vary_url_set = 1;
1092 policy_conf *conf = dconf;
1094 conf->validation_set = 1;
1096 return parse_action(cmd->pool, action, &conf->validation_action);
1102 policy_conf *conf = dconf;
1104 conf->validation_url = url;
1105 conf->validation_url_set = 1;
1113 policy_conf *conf = dconf;
1115 conf->conditional_set = 1;
1117 return parse_action(cmd->pool, action, &conf->conditional_action);
1123 policy_conf *conf = dconf;
1125 conf->conditional_url = url;
1126 conf->conditional_url_set = 1;
1133 policy_conf *conf = dconf;
1135 conf->nocache_set = 1;
1137 return parse_action(cmd->pool, action, &conf->nocache_action);
1142 policy_conf *conf = dconf;
1144 conf->nocache_url = url;
1145 conf->nocache_url_set = 1;
1152 policy_conf *conf = dconf;
1154 conf->maxage_set = 1;
1155 conf->maxage = apr_atoi64(maxage);
1156 if (conf->maxage < 0) {
1161 return parse_action(cmd->pool, action, &conf->maxage_action);
1166 policy_conf *conf = dconf;
1168 conf->maxage_url = url;
1169 conf->maxage_url_set = 1;
1176 policy_conf *conf = dconf;
1178 conf->version_set = 1;
1181 conf->version = "HTTP/1.1";
1182 conf->version_num = HTTP_VERSION(1, 1);
1185 conf->version = "HTTP/1.0";
1186 conf->version_num = HTTP_VERSION(1, 0);
1189 conf->version = "HTTP/0.9";
1190 conf->version_num = HTTP_VERSION(0, 9);
1197 return parse_action(cmd->pool, action, &conf->version_action);
1202 policy_conf *conf = dconf;
1204 conf->version_url = url;
1205 conf->version_url_set = 1;