1 PerlModule Apache2::compat
3 #PerlModule Apache::DBI
6 PerlSetVar MasonArgsMethod CGI
7 PerlModule HTML::Mason::ApacheHandler
9 PerlRequire "%%%MASON_HANDLER%%%"
11 PerlChildInitHandler FS::Mason::child_init
14 AddDefaultCharset UTF-8
16 PerlModule FS::AuthCookieHandler
18 #XXX need to also work properly for installs w/o /freeside/ in path
19 PerlSetVar FreesideLoginScript /freeside/loginout/login.html
21 #disables HTTP, so HTTPS only
22 #PerlSetVar FreesideSecure 1
24 #prevents cookie theft via JS
25 PerlSetVar FreesideHttpOnly 1
27 <Directory %%%FREESIDE_DOCUMENT_ROOT%%%>
30 AuthType FS::AuthCookieHandler
31 PerlAuthenHandler FS::AuthCookieHandler->authenticate
32 PerlAuthzHandler FS::AuthCookieHandler->authorize
35 <Files ~ "(\.cgi|\.html)$">
36 SetHandler perl-script
37 PerlHandler HTML::Mason
44 AuthType FS::AuthCookieHandler
45 SetHandler perl-script
46 PerlHandler FS::AuthCookieHandler->login
49 <Directory %%%FREESIDE_DOCUMENT_ROOT%%%/elements/>
50 <Files "freeside.css">
60 <Directory %%%FREESIDE_DOCUMENT_ROOT%%%/rt/Helpers/>
61 SetHandler perl-script
62 PerlHandler HTML::Mason
65 <Directory %%%FREESIDE_DOCUMENT_ROOT%%%/rt/REST/1.0/NoAuth/>
69 <Directory %%%FREESIDE_DOCUMENT_ROOT%%%/rt/NoAuth/iCal/>
71 SetHandler perl-script
72 PerlHandler HTML::Mason
75 <Directory %%%FREESIDE_DOCUMENT_ROOT%%%/REST/1.0/>
77 SetHandler perl-script
78 PerlHandler HTML::Mason