perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Maltsev>
Subject pure fileless requests
Date Fri, 05 Nov 2004 23:44:23 GMT

I use PerlTransHandler to decide if I want to intercept and serve a 
request or not. When the request is served by my content handler there
is no file that corresponds to it, directly or indirectly.

I used to just not call $r->filename(...) at all. But under Gentoo's 
overtightened default config it fails with access denied. My best guess 
-- because it maps to '/' by default and that's denied.

I had to resort to calling $r->filename($r->document_root.'/index.html) 
which does solve my problem, but looks terrible. And apache still 
translates it to index.html.en, provides finfo() and so -- none of which 
I need.

So, my question is -- what is the best way to tell Apache that there is 
no file associated with this request, don't bother trying to stat() any 
files or run any <Directory> rules.


Oh, and I use latest 2.x versions for development, but the same code 
runs in 1.x and 2.x mod_perl/apache setups.


Report problems:
Mail list info:
List etiquette:

View raw message