Lines Matching refs:host
132 static void build_doc_root_path(buffer *out, const buffer *sroot, const buffer *host, const buffer … in build_doc_root_path() argument
135 if (host) { in build_doc_root_path()
140 if (NULL == (dp = strchr(host->ptr, ':'))) { in build_doc_root_path()
141 buffer_append_string_buffer(out, host); in build_doc_root_path()
143 buffer_append_string_len(out, host->ptr, dp - host->ptr); in build_doc_root_path()
155 static int build_doc_root(request_st * const r, plugin_data *p, buffer *out, const buffer *host) { in build_doc_root() argument
157 build_doc_root_path(out, p->conf.server_root, host, p->conf.document_root); in build_doc_root()
185 const buffer *host = &r->uri.authority; in mod_simple_vhost_docroot() local
186 if ((!buffer_is_blank(host) && build_doc_root(r, p, b, host)) in mod_simple_vhost_docroot()
187 || build_doc_root(r, p, b, (host = p->conf.default_host))) { in mod_simple_vhost_docroot()
188 if (host) { in mod_simple_vhost_docroot()
190 buffer_copy_buffer(&r->server_name_buf, host); in mod_simple_vhost_docroot()