.--- On Sun, 12 Mar 2006, Neil Watson wrote:
| <LocationMatch "\.*\.(html|txt|pl|mas)$">
`---
Because of the first back-whack, that translates to: "Any number of
dots, including none ay all. Then a real dot. Then one of these
extensions. All at the end of the string."
Even so, it SHOULD match, so I can only think that mod_perl isn't
getting loaded and so Apache skips the whole IfModule section. A quick
(but nasty) way to find out is to put a genuine syntax error inside
that block and then see if Apache trips over it at startup. If it
doesn't see the error, then it is in fact skipping the block, and
you'll need to go back and add that module to Apache's config.
Once that's sorted, I'm thinking you might mean:
<LocationMatch "\.(html|txt|pl|mas)$">
I'm not convinced that you really want to parse text files or raw perl
scripts that get mixed in there, so you might even mean:
<LocationMatch "\.(html|mas)$">
Since components don't have to be matched in Apache's config (only
requests do), you don't have to put your component extension in the
match, so I have:
<LocationMatch "\.html$">
My autohandlers and dhandlers are called _AUTO and _DEFAULT
respectively, and my mason components have no extensions whatsoever
and live happily at /m/ (to make component calls short and to
correspond with $m), and it works stunningly. My naming's weird, but
hey, I gotta be me.
To prevent direct access to your components, you might do some version
of:
<LocationMatch "^/m/">
SetHandler perl-script
PerlInitHandler Apache::Constants::NOT_FOUND
</LocationMatch>
<LocationMatch "_(AUTO|DEFAULT)$">
SetHandler perl-script
PerlInitHandler Apache::Constants::NOT_FOUND
</LocationMatch>
Apache2 doesn't bind to the beginning implicitely (thankfully) so
leaving the front end unbound is every bit as good as matching the
front with ".*".
Give this shorter version a whirl and let me know if it doesn't
behave.
Best regards,
-- Patrick
--
.------ Patrick M. Jordan ------. Random unused band name:
| Systems/Network Administrator | The Smashing Mirrors
`----- Antistatic Matrix -------'
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Mason-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mason-users