Lines Matching refs:con
166 static int mod_evhost_parse_host(connection *con,array *host) { in mod_evhost_parse_host() argument
168 register char *ptr = con->uri.authority->ptr + con->uri.authority->used - 1; in mod_evhost_parse_host()
175 for(;ptr > con->uri.authority->ptr;ptr--) { in mod_evhost_parse_host()
196 if (colon != con->uri.authority->ptr) { in mod_evhost_parse_host()
197 for(ptr = colon - 1, i = 1; ptr > con->uri.authority->ptr; ptr--) { in mod_evhost_parse_host()
228 static int mod_evhost_patch_connection(server *srv, connection *con, plugin_data *p) { in mod_evhost_patch_connection() argument
241 if (!config_check_cond(srv, con, dc)) continue; in mod_evhost_patch_connection()
259 static handler_t mod_evhost_uri_handler(server *srv, connection *con, void *p_d) { in mod_evhost_uri_handler() argument
268 if (con->uri.authority->used == 0) return HANDLER_GO_ON; in mod_evhost_uri_handler()
270 mod_evhost_patch_connection(srv, con, p); in mod_evhost_uri_handler()
279 mod_evhost_parse_host(con, parsed_host); in mod_evhost_uri_handler()
294 char *colon = strchr(con->uri.authority->ptr, ':'); in mod_evhost_uri_handler()
297 buffer_append_string_buffer(p->tmp_buf, con->uri.authority); /* adds fqdn */ in mod_evhost_uri_handler()
300 …buffer_append_string_len(p->tmp_buf, con->uri.authority->ptr, colon - con->uri.authority->ptr); /*… in mod_evhost_uri_handler()
318 if (HANDLER_ERROR == stat_cache_get_entry(srv, con, p->tmp_buf, &sce)) { in mod_evhost_uri_handler()
327 buffer_copy_string_buffer(con->physical.doc_root, p->tmp_buf); in mod_evhost_uri_handler()