Lines Matching refs:r
45 static void mod_indexfile_patch_config(request_st * const r, plugin_data * const p) { in mod_indexfile_patch_config() argument
49 if (config_check_cond(r, (uint32_t)p->cvlist[i].k_id)) in mod_indexfile_patch_config()
82 static handler_t mod_indexfile_tryfiles(request_st * const r, const array * const indexfiles) { in __attribute_nonnull__()
86 ? &r->physical.path in __attribute_nonnull__()
87 : &r->physical.doc_root; /* index file relative to doc_root */ in __attribute_nonnull__()
105 r->http_status = 403; in __attribute_nonnull__()
109 r->http_status = 500; in __attribute_nonnull__()
110 log_perror(r->conf.errh, __FILE__, __LINE__, in __attribute_nonnull__()
112 r->uri.path.ptr, r->physical.path.ptr); in __attribute_nonnull__()
120 buffer_copy_buffer(&r->uri.path, v); in __attribute_nonnull__()
121 http_header_env_set(r, CONST_STR_LEN("PATH_TRANSLATED_DIRINDEX"), in __attribute_nonnull__()
122 BUF_PTR_LEN(&r->physical.path)); in __attribute_nonnull__()
123 buffer_copy_path_len2(&r->physical.path, in __attribute_nonnull__()
124 BUF_PTR_LEN(&r->physical.doc_root), in __attribute_nonnull__()
130 buffer_append_string_buffer(&r->uri.path, v); in __attribute_nonnull__()
131 buffer_append_path_len(&r->physical.path, BUF_PTR_LEN(v)); in __attribute_nonnull__()
143 if (NULL != r->handler_module) return HANDLER_GO_ON; in URIHANDLER_FUNC()
144 if (!buffer_has_slash_suffix(&r->uri.path)) return HANDLER_GO_ON; in URIHANDLER_FUNC()
147 mod_indexfile_patch_config(r, p); in URIHANDLER_FUNC()
150 if (r->conf.log_request_handling) { in URIHANDLER_FUNC()
151 log_error(r->conf.errh, __FILE__, __LINE__, in URIHANDLER_FUNC()
153 log_error(r->conf.errh, __FILE__, __LINE__, in URIHANDLER_FUNC()
154 "URI : %s", r->uri.path.ptr); in URIHANDLER_FUNC()
157 return mod_indexfile_tryfiles(r, p->conf.indexfiles); in URIHANDLER_FUNC()