summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2002-07-12 14:24:04 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2002-07-12 14:24:04 +0000
commit05669accd66824c07695ef9c357871f345c7981a (patch)
treed6aa39920631f72bc86b6c3518f91808f0c0b360 /usr.sbin
parent8d1dff739991f00306ce22ead1944a347af0bdb2 (diff)
chroot aware
testing help by nick@
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/httpd/src/modules/standard/mod_vhost_alias.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.sbin/httpd/src/modules/standard/mod_vhost_alias.c b/usr.sbin/httpd/src/modules/standard/mod_vhost_alias.c
index 3baa9a657e5..8c295364387 100644
--- a/usr.sbin/httpd/src/modules/standard/mod_vhost_alias.c
+++ b/usr.sbin/httpd/src/modules/standard/mod_vhost_alias.c
@@ -184,6 +184,8 @@ static const char *vhost_alias_set(cmd_parms *cmd, void *dummy, char *map)
return "INTERNAL ERROR: unknown command info";
}
+ ap_server_strip_chroot(map, 1);
+
if (!(ap_os_is_path_absolute(map))) {
if (strcasecmp(map, "none")) {
return "format string must be an absolute file path or 'none'";