pure fileless requests

[prev] [thread] [next] [Date index for 2004/11/05]

From: Andrew Maltsev
Subject: pure fileless requests
Date: 23:44 on 05 Nov 2004
Hello,

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.

Thanx!

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.

Andrew.

        -- 
        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

pure fileless requests
Andrew Maltsev 23:44 on 05 Nov 2004

Re: pure fileless requests
Geoffrey Young 03:25 on 07 Nov 2004

Generated at 11:26 on 21 Dec 2004 by mariachi v0.52