RT# 81706 Browser reloads CSS after Freeside upgrade
[freeside.git] / htetc / freeside-base2.conf
1 PerlModule Apache2::compat
2
3 #PerlModule Apache::DBI
4
5 PerlModule HTML::Mason
6 PerlSetVar MasonArgsMethod CGI
7 PerlModule HTML::Mason::ApacheHandler
8
9 PerlRequire "%%%MASON_HANDLER%%%"
10
11 PerlChildInitHandler FS::Mason::child_init
12
13 #Locale::SubCountry
14 AddDefaultCharset UTF-8
15
16 PerlModule FS::AuthCookieHandler
17
18 #XXX need to also work properly for installs w/o /freeside/ in path
19 PerlSetVar FreesideLoginScript /freeside/loginout/login.html
20
21 #disables HTTP, so HTTPS only
22 #PerlSetVar FreesideSecure 1
23
24 #prevents cookie theft via JS
25 PerlSetVar FreesideHttpOnly 1
26
27 <Directory %%%FREESIDE_DOCUMENT_ROOT%%%>
28
29     AuthName Freeside
30     AuthType FS::AuthCookieHandler
31     PerlAuthenHandler FS::AuthCookieHandler->authenticate
32     PerlAuthzHandler  FS::AuthCookieHandler->authorize
33     require valid-user
34
35     <Files ~ "(\.cgi|\.html)$">
36         SetHandler perl-script
37         PerlHandler HTML::Mason
38     </Files>
39
40 </Directory>
41
42 <Files login>
43     AuthName Freeside
44     AuthType FS::AuthCookieHandler
45     SetHandler perl-script
46     PerlHandler FS::AuthCookieHandler->login
47 </Files>
48
49 <Directory %%%FREESIDE_DOCUMENT_ROOT%%%/elements/>
50     <Files "freeside.css">
51         Satisfy any
52     </Files>
53
54     <Files ~ "(\.html)$">
55         Deny from all
56         SetHandler None
57     </Files>
58 </Directory>
59
60 <Directory %%%FREESIDE_DOCUMENT_ROOT%%%/rt/Helpers/>
61     SetHandler perl-script
62     PerlHandler HTML::Mason
63 </Directory>
64
65 <Directory %%%FREESIDE_DOCUMENT_ROOT%%%/rt/REST/1.0/NoAuth/>
66     Satisfy any
67 </Directory>
68
69 <Directory %%%FREESIDE_DOCUMENT_ROOT%%%/rt/NoAuth/iCal/>
70     Satisfy any
71     SetHandler perl-script
72     PerlHandler HTML::Mason
73 </Directory>
74
75 <Directory %%%FREESIDE_DOCUMENT_ROOT%%%/REST/1.0/>
76     Satisfy any
77     SetHandler perl-script
78     PerlHandler HTML::Mason
79 </Directory>
80