[mod_vhost] Mark vhost.simple and vhost.pattern as deprecated in favor of 'docroot'

personal/stbuehler/wip
Thomas Porzelt 13 years ago
parent 7409b2ef63
commit 031b4d17e4
  1. 6
      src/modules/mod_vhost.c

@ -193,6 +193,8 @@ static liAction* vhost_simple_create(liServer *srv, liWorker *wrk, liPlugin* p,
UNUSED(wrk);
UNUSED(userdata);
WARNING(srv, "%s", "vhost.simple is deprecated, 'docroot' now has the same power");
if (!val || val->type != LI_VALUE_LIST) {
ERROR(srv, "%s", "vhost.simple expects a list if string tuples as parameter");
return NULL;
@ -594,8 +596,10 @@ static liAction* vhost_pattern_create(liServer *srv, liWorker *wrk, liPlugin* p,
vhost_pattern_part part;
UNUSED(wrk); UNUSED(userdata);
WARNING(srv, "%s", "vhost.pattern is deprecated, 'docroot' now has the same power");
if (!val || val->type != LI_VALUE_STRING) {
ERROR(srv, "%s", "vhost.map expects a hashtable as parameter");
ERROR(srv, "%s", "vhost.pattern expects a string as parameter");
return NULL;
}

Loading…
Cancel
Save