File: mason_apache2_example.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 (26 lines) | stat: -rw-r--r-- 873 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# This -*- Apache -*- configuration enables the example Mason components in /var/www/mason_example

<IfModule mod_perl.c>
    PerlModule CGI::Cookie
    <Directory /var/www/mason_example>
        <FilesMatch "\.html$">
            SetHandler perl-script
            PerlResponsehandler HTML::Mason::ApacheHandler
            PerlSetVar MasonArgsMethod CGI
            # CGI was previously required for Mason to work in Apache2
        </FilesMatch>
    </Directory>
</IfModule>

<IfModule !mod_perl.c>
    # No mod_perl available, just use CGI
    # We still need mod_actions, try 'sudo a2enmod actions' if it doesn't work
    <IfModule mod_actions.c>
        Action masonexample-handler /cgi-bin/mason_example.cgi
        <Directory /var/www/mason_example>
            SetHandler masonexample-handler
        </Directory>
    </IfModule>
</IfModule>

# 2004-03-08 araqnid