Lines Matching refs:authority
215 static void mod_evhost_parse_host(buffer *key, array *host, buffer *authority) { in mod_evhost_parse_host() argument
216 char *ptr = authority->ptr + buffer_clen(authority); in mod_evhost_parse_host()
223 if (*authority->ptr == '[') { /* authority is IPv6 literal address */ in mod_evhost_parse_host()
226 do { --ptr; } while (ptr > authority->ptr && ptr[-1] != ']'); in mod_evhost_parse_host()
230 ptr = authority->ptr; in mod_evhost_parse_host()
236 for(; ptr > authority->ptr; --ptr) { in mod_evhost_parse_host()
252 if (colon != authority->ptr) { in mod_evhost_parse_host()
253 for(ptr = colon - 1, i = 1; ptr > authority->ptr; --ptr) { in mod_evhost_parse_host()
276 static void mod_evhost_build_doc_root_path(buffer *b, array *parsed_host, buffer *authority, const … in mod_evhost_build_doc_root_path() argument
278 mod_evhost_parse_host(b, parsed_host, authority); in mod_evhost_build_doc_root_path()
290 char *colon = strchr(authority->ptr, ':'); in mod_evhost_build_doc_root_path()
293 buffer_append_string_buffer(b, authority); /* adds fqdn */ in mod_evhost_build_doc_root_path()
296 buffer_append_string_len(b, authority->ptr, colon - authority->ptr); /* adds fqdn */ in mod_evhost_build_doc_root_path()
329 if (buffer_is_blank(&r->uri.authority)) return HANDLER_GO_ON; in mod_evhost_uri_handler()
337 mod_evhost_build_doc_root_path(b, &p->split_vals, &r->uri.authority, p->conf.path_pieces); in mod_evhost_uri_handler()