perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul <ydbx...@yahoo.com>
Subject custom_response/segfaults
Date Thu, 01 Jun 2000 16:00:24 GMT
After code verifying that the user hasn't already
been registered/approved, I changed the code below
==============================================
if ($url !~ /NewReg[.]cgi$/o) {
   $r->custom_response(FORBIDDEN,
       "/public/NewReg.cgi");
   return FORBIDDEN; # trigger custom_response
}
==============================================
to 
==============================================
return OK 
   if $url =~ m{  # (I removed a few patterns here)
                .*NewReg.cgi 
               }ixo;
   $r->headers_out->add('Location' =>
       "$serverpath/NewReg.cgi");
   return MOVED;
==============================================
and my segfaults seem to have stopped killing my
server child provcesses.
Did I use custom_response incorrectly?

__________________________________________________
Do You Yahoo!?
Send instant messages & get email alerts with Yahoo! Messenger.
http://im.yahoo.com/

Mime
View raw message