Lines Matching refs:con
124 static int build_doc_root(server *srv, connection *con, plugin_data *p, buffer *out, buffer *host) { in build_doc_root() argument
155 buffer_copy_string_buffer(out, con->conf.document_root); in build_doc_root()
159 if (HANDLER_ERROR == stat_cache_get_entry(srv, con, out, &sce)) { in build_doc_root()
175 static int mod_simple_vhost_patch_connection(server *srv, connection *con, plugin_data *p) { in mod_simple_vhost_patch_connection() argument
195 if (!config_check_cond(srv, con, dc)) continue; in mod_simple_vhost_patch_connection()
220 static handler_t mod_simple_vhost_docroot(server *srv, connection *con, void *p_data) { in mod_simple_vhost_docroot() argument
229 mod_simple_vhost_patch_connection(srv, con, p); in mod_simple_vhost_docroot()
232 con->uri.authority->used && in mod_simple_vhost_docroot()
233 buffer_is_equal(p->conf.docroot_cache_key, con->uri.authority)) { in mod_simple_vhost_docroot()
235 buffer_copy_string_buffer(con->physical.doc_root, p->conf.docroot_cache_value); in mod_simple_vhost_docroot()
236 buffer_copy_string_buffer(con->server_name, p->conf.docroot_cache_servername); in mod_simple_vhost_docroot()
239 if ((con->uri.authority->used == 0) || in mod_simple_vhost_docroot()
240 build_doc_root(srv, con, p, p->doc_root, con->uri.authority)) { in mod_simple_vhost_docroot()
242 if (build_doc_root(srv, con, p, in mod_simple_vhost_docroot()
247 buffer_copy_string_buffer(con->server_name, p->conf.default_host); in mod_simple_vhost_docroot()
248 buffer_copy_string_buffer(con->physical.doc_root, p->doc_root); in mod_simple_vhost_docroot()
254 buffer_copy_string_buffer(con->server_name, con->uri.authority); in mod_simple_vhost_docroot()
258 buffer_copy_string_buffer(p->conf.docroot_cache_key, con->uri.authority); in mod_simple_vhost_docroot()
260 buffer_copy_string_buffer(p->conf.docroot_cache_servername, con->server_name); in mod_simple_vhost_docroot()
262 buffer_copy_string_buffer(con->physical.doc_root, p->doc_root); in mod_simple_vhost_docroot()