File: httpd.conf

package info (click to toggle)
libhtml-mason-perl 1%3A1.58-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,796 kB
  • sloc: perl: 8,618; sh: 49; makefile: 2
file content (19 lines) | stat: -rw-r--r-- 543 bytes parent folder | download | duplicates (11)
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>