From: Joel Roth on 24 Jun 2010 22:30 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-REQUEST(a)lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org Archive: http://lists.debian.org/20100624104334.GA5205(a)sprite
From: Steve Kemp on 25 Jun 2010 04:30 On Thu Jun 24, 2010 at 00:43:34 -1000, Joel Roth wrote: > 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. > 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 OK so here you're not using the configuration file at all "-C /dev/nulL" and instead the command line. > The full thttpd.conf file (minus comments) is: ... > nochroot > user=www-data > cgipat="**.cgi" That looks wrong. On my (working) systems I have: cgipat=/cgi-bin/* cgipat=**.cgi i.e. no "quotes". Steve -- Let me steal your soul? http://stolen-souls.com -- To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org Archive: http://lists.debian.org/20100625085507.GA11157(a)steve.org.uk
|
Pages: 1 Prev: how to start xfce in etch Next: xorg.conf -- nvidia to ati |