aboutsummaryrefslogtreecommitdiff
path: root/ex.c
diff options
context:
space:
mode:
Diffstat (limited to 'ex.c')
-rw-r--r--ex.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ex.c b/ex.c
index b9a9f7a..7979949 100644
--- a/ex.c
+++ b/ex.c
@@ -237,6 +237,8 @@ launch_cgi(const char *spath, const char *relpath, const char *query,
safe_setenv("TLS_CLIENT_HASH", chash);
}
+ fchdir(vhost->dir);
+
execvp(ex, argv);
goto childerr;
}