in reply to Re: mod_perl how to process static content
in thread mod_perl how to process static content
<VirtualHost> SetHandler perl-script PerlTransHandler My::Apache::Rewrite </VirtualHost>
No results because main handler is always set :(package My::Apache::Rewrite; use strict; use warnings; use Apache2::RequestRec (); use Apache2::Const -compile => qw(FORBIDDEN DECLINED OK DONE); sub handler { my $r = shift; unless(($r->uri ne '/' && !$r->args) && (-d $r->filename || -f $r- +>filename)) { $r->set_handlers(PerlResponseHandler => 'My::Apache::Main'); } return Apache2::Const::OK; } 1;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: mod_perl how to process static content
by perrin (Chancellor) on Mar 24, 2008 at 20:46 UTC | |
|
Re^3: mod_perl how to process static content
by atento (Novice) on Mar 24, 2008 at 20:49 UTC | |
by CountZero (Bishop) on Mar 24, 2008 at 22:03 UTC |