version 1.1.1.1, 2013/10/14 10:32:47
|
version 1.1.1.2, 2014/06/15 20:20:06
|
Line 89 SETDEFAULTS_FUNC(mod_simple_vhost_set_defaults) {
|
Line 89 SETDEFAULTS_FUNC(mod_simple_vhost_set_defaults) {
|
|
|
if (!p) return HANDLER_ERROR; |
if (!p) return HANDLER_ERROR; |
|
|
p->config_storage = calloc(1, srv->config_context->used * sizeof(specific_config *)); | p->config_storage = calloc(1, srv->config_context->used * sizeof(plugin_config *)); |
|
|
for (i = 0; i < srv->config_context->used; i++) { |
for (i = 0; i < srv->config_context->used; i++) { |
plugin_config *s; |
plugin_config *s; |
Line 124 SETDEFAULTS_FUNC(mod_simple_vhost_set_defaults) {
|
Line 124 SETDEFAULTS_FUNC(mod_simple_vhost_set_defaults) {
|
|
|
static int build_doc_root(server *srv, connection *con, plugin_data *p, buffer *out, buffer *host) { |
static int build_doc_root(server *srv, connection *con, plugin_data *p, buffer *out, buffer *host) { |
stat_cache_entry *sce = NULL; |
stat_cache_entry *sce = NULL; |
assert(p->conf.server_root->used > 1); | force_assert(p->conf.server_root->used > 1); |
|
|
buffer_prepare_copy(out, 128); |
buffer_prepare_copy(out, 128); |
buffer_copy_string_buffer(out, p->conf.server_root); |
buffer_copy_string_buffer(out, p->conf.server_root); |