diff options
-rw-r--r-- | usr.sbin/httpd/src/modules/standard/mod_rewrite.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/usr.sbin/httpd/src/modules/standard/mod_rewrite.c b/usr.sbin/httpd/src/modules/standard/mod_rewrite.c index f138b546c52..953b351572a 100644 --- a/usr.sbin/httpd/src/modules/standard/mod_rewrite.c +++ b/usr.sbin/httpd/src/modules/standard/mod_rewrite.c @@ -515,6 +515,10 @@ static const char *cmd_rewritemap(cmd_parms *cmd, void *dconf, char *a1, new->fpin = -1; new->fpout = -1; + /* yes, we do it twice. needed for restart awareness */ + ap_server_strip_chroot(new->checkfile, 0); + ap_server_strip_chroot(new->datafile, 0); + if (new->checkfile && (sconf->state == ENGINE_ENABLED) && (stat(new->checkfile, &st) == -1)) { return ap_pstrcat(cmd->pool, @@ -522,6 +526,9 @@ static const char *cmd_rewritemap(cmd_parms *cmd, void *dconf, char *a1, new->checkfile, NULL); } + ap_server_strip_chroot(new->checkfile, 1); + ap_server_strip_chroot(new->datafile, 1); + return NULL; } |