1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
#
# Simple Mason configuration via httpd.conf directives.
#
# Make sure to preload as much code as we can in the parent process.
PerlModule HTML::Mason::ApacheHandler
PerlModule Apache::Request
# Serve these requests through Mason.
<LocationMatch "(\.html|\.txt|\.pl)$">
SetHandler perl-script
PerlHandler HTML::Mason::ApacheHandler
</LocationMatch>
# Hide private components from users.
<LocationMatch "(dhandler|autohandler|\.m(html|txt|pl))$">
SetHandler perl-script
PerlInitHandler Apache::Constants::NOT_FOUND
</LocationMatch>
|