diff --git a/testsuite b/testsuite
index 789ac1963fa6695af14014f47dcfa4ca4a2343f6..00efe31050a785311f2111a8fcf9695a0474e69f 100755
--- a/testsuite
+++ b/testsuite
@@ -111,6 +111,7 @@ section "make hddemux configuration on $ip:2000"
 systemd-socket-activate -l "$ip:2000" -E=HTTP_TARGET="$ip:8853" -E DNS_TARGET="$ip:8853" "$hddemux" 2> "$d/hddemux.err" &
 
 section "set up nginx on $ip:4433"
+mkdir -p "$d/nginx"
 cat >"$d/nginx.conf" <<EOF
 error_log stderr;
 worker_processes 1;
@@ -123,7 +124,11 @@ http {
  default_type text/plain;
  ssl_protocols TLSv1.2;
  ssl_prefer_server_ciphers on;
- client_body_temp_path body;
+ client_body_temp_path nginx/body;
+ fastcgi_temp_path nginx/fastcgi;
+ proxy_temp_path nginx/proxy;
+ scgi_temp_path nginx/scgi;
+ uwsgi_temp_path nginx/uwsgi;
  server {
   listen $ip:4433 ssl;
   server_name test.example;