File: extra.conf.in

package info (click to toggle)
libcatalyst-engine-apache-perl 1.16-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,044 kB
  • sloc: perl: 6,344; makefile: 2
file content (57 lines) | stat: -rw-r--r-- 1,407 bytes parent folder | download | duplicates (6)
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# mod_perl 1
<IfDefine APACHE1>
    <IfModule mod_perl.c>
        <Perl>
            use lib qw(@ServerRoot@/lib);
        </Perl>
        
        PerlModule TestApp
        
        <Location />
            SetHandler perl-script
            PerlHandler TestApp
        </Location>
        
        # test at a non-root location
        <Location /deep/path>
            SetHandler perl-script
            PerlHandler TestApp
        </Location>
    </IfModule>
</IfDefine>

# mod_perl 2
<IfDefine !APACHE1>
    <IfModule mod_perl.c>

        # Needed to pass some %2F tests
        AllowEncodedSlashes on

        PerlSwitches -I@ServerRoot@/lib
        
        PerlModule TestApp
        
        <Location />
            SetHandler          modperl
            PerlResponseHandler TestApp
        </Location>
        
        # test at a non-root location
        <Location /deep/path>
            SetHandler          modperl
            PerlResponseHandler TestApp
        </Location>
        
        # test LocationMatch (RT 26921)
        <LocationMatch ^/match/(this|that)*>
            SetHandler          modperl
            PerlResponseHandler TestApp
        </LocationMatch>
        
        # test using the perl-script handler
        <Location /oldscript>
            SetHandler          perl-script
            PerlResponseHandler TestApp
        </Location>
    </IfModule>
</IfDefine>