From 7e44920c502e717c51e37e2f5cfc098a1312542f Mon Sep 17 00:00:00 2001 From: Thomas Porzelt Date: Thu, 21 Jan 2010 14:44:36 +0100 Subject: [PATCH] [mod_vhost] Fix vhost.simple, it checked the physical path instead of docroot --- src/modules/mod_vhost.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/mod_vhost.c b/src/modules/mod_vhost.c index c0aad87..f0947b5 100644 --- a/src/modules/mod_vhost.c +++ b/src/modules/mod_vhost.c @@ -144,7 +144,7 @@ static liHandlerResult vhost_simple(liVRequest *vr, gpointer param, gpointer *co /* check if directory exists. if not, fall back to default host */ - switch (li_stat_cache_get(vr, vr->physical.path, &st, &err, NULL)) { + switch (li_stat_cache_get(vr, vr->physical.doc_root, &st, &err, NULL)) { case LI_HANDLER_GO_ON: break; case LI_HANDLER_WAIT_FOR_EVENT: *context = GINT_TO_POINTER(1); @@ -158,7 +158,7 @@ static liHandlerResult vhost_simple(liVRequest *vr, gpointer param, gpointer *co } if (debug) - VR_DEBUG(vr, "vhost.simple: physical docroot now \"%s\"", vr->physical.doc_root->str); + VR_DEBUG(vr, "vhost.simple: docroot now \"%s\"", vr->physical.doc_root->str); /* build physical path: docroot + uri.path */ g_string_truncate(vr->physical.path, 0);