Yes, I create new virtual server, add new behavior for "do" extension, add "CGI" handler to this behavior. And check "Error handler".
Perl CGI scripts with ".do" extensions work fine, but, when I use "warn" or "die" I have "500 error" message in browser and nothing useful in cherokee error logs. This is my script: ====code==== #!/usr/bin/perl use strict; use utf8; print "Content-type:text/html;\n\n"; #die "this is error die" #warn "this is error warn"; print "Success"; ====end code==== In apache: When I use - warn "this is error warn"; - I view page "Success" in browser and "this is error warn" in apache error log file. When I use - die "this is error die"; - I view page "500 Error" in browser and "this is error die" in apache error log file. Bun in Cherokee i see only 500 error page and this: ::ffff:93.81.252.247 - - [12/Nov/2008:13:14:28 +0000] "GET /test.do HTTP/1.1" 500 0 "-" "Mozilla/5.0 (X11; U; Linux i686; ru; rv:1.9.0.4) Gecko/2008110400 Ubuntu/8.10 (intrepid) Firefox/3.0.4" ::ffff:93.81.252.247 - - [12/Nov/2008:13:14:28 +0000] "GET /test.do HTTP/1.1" 500 0 "-" "Mozilla/5.0 (X11; U; Linux i686; ru; rv:1.9.0.4) Gecko/2008110400 Ubuntu/8.10 (intrepid) Firefox/3.0.4" Like this is access.log %( 2008/11/12 Taher Shihadeh <[EMAIL PROTECTED]>: > Hello! > > Are you enabling the [whatever vhost]->[whatever rule]->Hanlder->'Error > Handler' checkbox to pass errors as they are generated? > > Cheers. > > On Wednesday 12 November 2008 09:56:56, Илья Скорик wrote: >> Hello! >> >> Recently I has started to use your web server. The question - how to debug >> CGI? >> >> I use perl-cgi scripts. Earlier I could call "die" or "warn" in a >> perl and receive the necessary debug information and all perl error >> messages in web server logs. Now by any call I receive an clear "500 >> error" message and no necessary information from perl compilator. >> What I can do with this issue? > > -- > [EMAIL PROTECTED] > http://unixwars.com > -- -- С уважением, Илья Скорик специалист Inprint - автоматизация вашего издательства Yours faithfully, Ilya Skorik the expert Inprint - automation of your publishing house e-mail: [EMAIL PROTECTED] web: http://www.inprint.ru/ _______________________________________________ Cherokee mailing list [email protected] http://lists.octality.com/listinfo/cherokee
