Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: ModPerl: ModPerl

Catchall ScriptAlias and error handling

 

 

ModPerl modperl RSS feed   Index | Next | Previous | View Threaded


andreas.mock at drumedar

Dec 1, 2008, 9:52 AM

Post #1 of 2 (212 views)
Permalink
Catchall ScriptAlias and error handling

Hi all,

I searched the internet for a wile now and couldn't find an answer to my question.
We have the following situation:

a) In a virtual host configuration we have several Alias entries pointing to several
directories and files
b) At the end of the config we have a ScriptAliasMatch entry of the form
ScriptAliasMatch ^(.*)$ /some/directory/doit.pl$1
and
<Directory /some/directory>
SetHandler perl-script
PerlResponseHandler ModPerl::Registry
PerlOptions +ParseHeaders
Options +ExecCGI
</Directory>

It works as expected in regards to the "catchall" behaviour of the script.
BUT: We would like the following. As soon as a file in one of the aliased directories is not found
the server should return the standard error message. At the moment a subrequest hits the perl
handler doit.pl.

Now my question: How can I achieve the desired behaviour?
Is there a way to internally redirect to the apache standard error handler?
How can I identify these kinds of subrequests?

Best regards
Andreas


perrin at elem

Dec 1, 2008, 1:08 PM

Post #2 of 2 (198 views)
Permalink
Re: Catchall ScriptAlias and error handling [In reply to]

On Mon, Dec 1, 2008 at 12:52 PM, Andreas Mock <andreas.mock[at]drumedar.de> wrote:
> BUT: We would like the following. As soon as a file in one of the aliased directories is not found
> the server should return the standard error message. At the moment a subrequest hits the perl
> handler doit.pl.

What's in this server? I'd probably use mod_rewrite for this, since
it would be on the frontend proxy. If you're running a small in-house
server and don't need a proxy, you could turn this all into a
PerlTransHandler instead.

- Perrin

ModPerl modperl RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.