From f5a735767c9cf3c394eda2fb02cae9c1367a9a77 Mon Sep 17 00:00:00 2001 From: Henning Brauer Date: Tue, 9 Jul 2002 23:39:32 +0000 Subject: make mod_alias work inside the chroot. --- usr.sbin/httpd/src/modules/standard/mod_alias.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.sbin/httpd/src/modules/standard/mod_alias.c b/usr.sbin/httpd/src/modules/standard/mod_alias.c index 333ec157952..d1075d3e92a 100644 --- a/usr.sbin/httpd/src/modules/standard/mod_alias.c +++ b/usr.sbin/httpd/src/modules/standard/mod_alias.c @@ -136,7 +136,7 @@ static const char *add_alias_internal(cmd_parms *cmd, void *dummy, char *f, char /* XX r can NOT be relative to DocumentRoot here... compat bug. */ - ap_server_strip_chroot(r, 0); + ap_server_strip_chroot(r, 1); if (use_regex) { new->regexp = ap_pregcomp(cmd->pool, f, REG_EXTENDED); -- cgit v1.2.3