1 PerlModule Apache2::compat
3 #PerlModule DBIx::Profile
4 #PerlModule Apache::DBI
7 PerlSetVar MasonArgsMethod CGI
8 PerlModule HTML::Mason::ApacheHandler
10 PerlRequire "%%%MASON_HANDLER%%%"
12 PerlChildInitHandler FS::Mason::child_init
15 AddDefaultCharset UTF-8
17 PerlModule FS::AuthCookieHandler24
18 PerlAddAuthzProvider user FS::AuthCookieHandler24->authz_handler
20 #XXX need to also work properly for installs w/o /freeside/ in path
21 PerlSetVar FreesideLoginScript /freeside/loginout/login.html
23 #disables HTTP, so HTTPS only
24 #PerlSetVar FreesideSecure 1
26 #prevents cookie theft via JS
27 PerlSetVar FreesideHttpOnly 1
29 #prevents broken restarts with "couldn't grab the accept mutex" error
32 <Directory %%%FREESIDE_DOCUMENT_ROOT%%%>
34 #work around Apache2::AuthCookie vs. mod_dir
35 DirectoryIndex disabled
37 #XXX need to also work properly for installs w/o /freeside/ in path
39 RewriteBase /freeside/
40 RewriteRule ^/?$ /freeside/index.html [L,R=301]
43 AuthType FS::AuthCookieHandler24
44 PerlAuthenHandler FS::AuthCookieHandler24->authenticate
47 <Files ~ "(\.cgi|\.html)$">
48 SetHandler perl-script
49 PerlHandler HTML::Mason
56 AuthType FS::AuthCookieHandler24
57 SetHandler perl-script
58 PerlHandler FS::AuthCookieHandler24->login
61 <Directory %%%FREESIDE_DOCUMENT_ROOT%%%/loginout/>
67 <Directory %%%FREESIDE_DOCUMENT_ROOT%%%/elements/>
68 <Files "freeside.css">
78 <Directory %%%FREESIDE_DOCUMENT_ROOT%%%/rt/Helpers/>
79 SetHandler perl-script
80 PerlHandler HTML::Mason
83 <Directory %%%FREESIDE_DOCUMENT_ROOT%%%/rt/REST/1.0/NoAuth/>
87 <Directory %%%FREESIDE_DOCUMENT_ROOT%%%/rt/NoAuth/iCal/>
89 SetHandler perl-script
90 PerlHandler HTML::Mason
93 <Directory %%%FREESIDE_DOCUMENT_ROOT%%%/REST/>
95 SetHandler perl-script
96 PerlHandler HTML::Mason