Feature #2383
Updated by stbuehler almost 13 years ago
11:23 <darix> we just wrap that 1 line into an option 11:23 <darix> something like alias.update-docroot or so 11:24 <darix> then pixie79 and others can have change the behavior and we dont break the rest 11:24 <stbuehler> i'm lazy and wait for a patch :P <pre> diff --git a/src/mod_alias.c b/src/mod_alias.c index 5b7b510..6702bbc 100644 --- a/src/mod_alias.c +++ b/src/mod_alias.c @@ -173,6 +173,9 @@ PHYSICALPATH_FUNC(mod_alias_physical_handler) { /* matched */ buffer_copy_string_buffer(con->physical.basedir, ds->value); + if (0 == (con->conf.alias.update-docroot->used == 0) { + buffer_copy_string_buffer(con->physical.doc_root, ds->value); + } buffer_copy_string_buffer(srv->tmp_buf, ds->value); buffer_append_string(srv->tmp_buf, uri_ptr + alias_len); buffer_copy_string_buffer(con->physical.path, srv->tmp_buf); </pre>