summaryrefslogtreecommitdiff
path: root/htetc/freeside-base2.conf
blob: 1504266cf664fa417490fff713ca389e01b5526a (plain)
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
PerlModule Apache2::compat

#PerlModule Apache::DBI

PerlModule HTML::Mason
PerlSetVar MasonArgsMethod CGI
PerlModule HTML::Mason::ApacheHandler

PerlRequire "%%%MASON_HANDLER%%%"

PerlChildInitHandler FS::Mason::child_init

#Locale::SubCountry
AddDefaultCharset UTF-8

<Directory %%%FREESIDE_DOCUMENT_ROOT%%%>

    AuthName Freeside
    AuthType Basic
    AuthUserFile %%%FREESIDE_CONF%%%/htpasswd
    require valid-user

    <Files ~ "(\.cgi|\.html)$">
        SetHandler perl-script
        PerlHandler HTML::Mason
    </Files>

</Directory>

<Directory %%%FREESIDE_DOCUMENT_ROOT%%%/elements/>
    <Files ~ "(\.html)$">
        Deny from all
        SetHandler None
    </Files>
</Directory>

<Directory %%%FREESIDE_DOCUMENT_ROOT%%%/rt/Helpers/>
    SetHandler perl-script
    PerlHandler HTML::Mason
</Directory>

<Directory %%%FREESIDE_DOCUMENT_ROOT%%%/loginout>
    AuthName Freeside
    AuthType Basic
    AuthUserFile %%%FREESIDE_CONF%%%/htpasswd.logout
    require valid-user
    <Files ~ "(\.cgi|\.html)$">
        SetHandler default-handler
    </Files>
</Directory>