On Tue, Mar 25, 2008 at 8:56 PM, Will Fould <[EMAIL PROTECTED]> wrote:
> Can a LocationMatch "wildcard" trigger on a normal 404 or is there a better
> way to do this?

There are many ways.  Here are a few:
- A custom ErrorDocument pointing to a URL that your perl code
handles.  (The 404 approach you had in mind.)
- A PerlTransHandler that checks for the existence of the directory
and sets the handler as needed.  (The built-in handler for static
files is called default-handler.)
- mod_rewrite can check for the existence of a file path and do an
internal redirect if it isn't found.

If you have a separate front-end proxy, mod_rewrite on the front-end
is probably the best way to go.  If you don't, a TransHandler is a
good approach.  The 404 is fine, but gets sticky because you have to
handle real 404s too.

- Perrin

Reply via email to