I'm running thttpd 2.25b-11 in unstable. Spending an inordinate amount of time, I find no setting for the cgi-pat variable in thttpd.conf including the default would allow CGI script to execute.
I found a workaround is to start thttpd from the command line, specifying cgi-pat with the -c flag. thttpd.conf: cgipat="**.cgi" # CGI script fails to execute -c '**.cgi' # CGI script executes I think it must be something simple, but I can't find it. For reference, the full command line I used is: thttpd -C /dev/null -u www-data -d /var/www -i /var/run/thttpd.pid -c '**.cgi' -l /var/log/thttpd.log The full thttpd.conf file (minus comments) is: port=80 dir=/var/www nochroot user=www-data cgipat="**.cgi" throttles=/etc/thttpd/throttle.conf logfile=/var/log/thttpd.log The running daemon shows up as: 5525 ? Ss 0:00 /usr/sbin/thttpd -C /etc/thttpd/thttpd.conf -i /var/run/thttpd.pid The CGI file permissons are fine: -rwxr-xr-x 1 www-data www-data 106 Jun 23 18:20 /var/www/it_works.cgi And the CGI file contents are okay: #!/usr/bin/perl print "Content-type: text/html\n\n"; print "<html><body><h1>It works!</h1></body></html>" Unless someone can point out something obvious I'm missing, I'll file this as a bug report. Regards, Joel -- Joel Roth -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20100624104334.ga5...@sprite