fi
# lastly, work around for thttpd problems
-echo 'logfile=/dev/null' >> /var/www/thttpd_config
+mv /var/www/thttpd_config /var/www/thttpd_config.orig
+cat > /var/www/thttpd_config << EOF
+dir=/var/www/data
+cgipat=**.cgi
+pidfile=/var/run/thttpd.pid
+logfile=/dev/null
+EOF