I'm using mod_access for Allow/Deny, and on Deny it of course responds to the client with FORBIDDEN. I've experimented with using a fixup handler to change this to a REDIRECT, but when I access the request object, $r->status seems to *always* be 200 OK.
I haven't been able to locate an API call that returns the "true" status by examining the source and autogenerated docs, but I'm not yet sure if apache2 architecture changes affect my understanding of the request cycle based on previous mp1 experience. IS this possible? My code so far: =============== package CTT::302; use Apache::RequestRec (); use Apache::RequestUtil (); use Apache::Response (); use Apache::Const -compile => qw(:common); use Apache::Log (); # comment this out when we're done fixing it. use Apache::Reload; use strict; use warnings; sub handler { my $r = shift; $r->log->warn("ENV: ", $r->status); # $r->custom_response(Apache::FORBIDDEN, Apache::get_status_line(302)); if ($r->status == Apache::FORBIDDEN) { $r->status(Apache::REDIRECT); $r->headers_out->set(Location => "http://www.yahoo.com"); } return Apache::DECLINED; } 1; === I put this in my httpd.conf as follows: <Location /robtest> Order deny,allow Deny from all # Allow from 127.0.0.1 PerlAccessHandler +CTT::302 </Location> === TIA! -- L8r, Rob -- Report problems: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiquette: http://perl.apache.org/maillist/email-etiquette.html