-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Manfred Morgner wrote:
> I wish apache to let mason handle _any_ URL that  comes in.

> SetHandler perl-script
> PerlModule HTML::Mason::ApacheHandler
> 
> <FilesMatch "(\.html|\.css)$">
>    PerlSetVar MasonDeclineDirs 0
>    SetHandler perl-script
>    PerlSetVar MasonDataDir /usr/local/mason
>    PerlSetVar MasonCompRoot /Library/WebServer/Documents
>    PerlHandler HTML::Mason::ApacheHandler
> </FilesMatch>
^ move configuration outside "FilesMatch"
Apache's internal handlers will triggers before Mason has a chance to
"Not Decline Dirs" ;)

> <FilesMatch "(\.mas|handler)$">
>    SetHandler perl-script
>    PerlModule  Apache::Constants
>    PerlHandler "sub { return Apache::Constants::NOT_FOUND }"
> </FilesMatch>
^ "NOT_FOUND" is already a function, PerlHandler A/C::NOT_FOUND should
be enough, and using PerlInitHandler should be faster:

  PerlInitHandler Apache::Constants::NOT_FOUND

> Is there any Can I configure apache to send each request to Mason, 
> regardless of it's content?
Use this to handle "everything":

  <Location />
    SetHandler perl-script
    PerlHandler HTML::Mason::ApacheHandler
  </Location>

Even more, you could make it even faster by also adding:

  PerlInitHandler Apache::Constants::OK

cheers
- --
Marius Feraru
-----BEGIN PGP SIGNATURE-----

iD8DBQFE5fxttZHp/AYZiNkRApo+AJ45CEgcPMk/YfGn0TLVso3MllMydACg3c5z
a7XZMMWuAWDr6U4bBzCOtus=
=YY+8
-----END PGP SIGNATURE-----

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Mason-users mailing list
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users

Reply via email to