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 <Directory %%%FREESIDE_DOCUMENT_ROOT%%%>
31 #work around Apache2::AuthCookie vs. mod_dir
32 DirectoryIndex disabled
34 #XXX need to also work properly for installs w/o /freeside/ in path
36 RewriteBase /freeside/
37 RewriteRule ^/?$ /freeside/index.html [L,R=301]
40 AuthType FS::AuthCookieHandler24
41 PerlAuthenHandler FS::AuthCookieHandler24->authenticate
44 <Files ~ "(\.cgi|\.html)$">
45 SetHandler perl-script
46 PerlHandler HTML::Mason
53 AuthType FS::AuthCookieHandler24
54 SetHandler perl-script
55 PerlHandler FS::AuthCookieHandler24->login
58 <Directory %%%FREESIDE_DOCUMENT_ROOT%%%/loginout/>
64 <Directory %%%FREESIDE_DOCUMENT_ROOT%%%/elements/>
65 <Files "freeside.css">
75 <Directory %%%FREESIDE_DOCUMENT_ROOT%%%/rt/Helpers/>
76 SetHandler perl-script
77 PerlHandler HTML::Mason
80 <Directory %%%FREESIDE_DOCUMENT_ROOT%%%/rt/REST/1.0/NoAuth/>
84 <Directory %%%FREESIDE_DOCUMENT_ROOT%%%/REST/>
86 SetHandler perl-script
87 PerlHandler HTML::Mason