respect part_svc labels in svc_hardware & svc_cable short service labels, RT#73405
[freeside.git] / htetc / freeside-base2.4.conf
1 PerlModule Apache2::compat
2
3 #PerlModule DBIx::Profile
4 #PerlModule Apache::DBI
5
6 PerlModule HTML::Mason
7 PerlSetVar MasonArgsMethod CGI
8 PerlModule HTML::Mason::ApacheHandler
9
10 PerlRequire "%%%MASON_HANDLER%%%"
11
12 PerlChildInitHandler FS::Mason::child_init
13
14 #Locale::SubCountry
15 AddDefaultCharset UTF-8
16
17 PerlModule FS::AuthCookieHandler24
18 PerlAddAuthzProvider user FS::AuthCookieHandler24->authz_handler
19
20 #XXX need to also work properly for installs w/o /freeside/ in path
21 PerlSetVar FreesideLoginScript /freeside/loginout/login.html
22
23 #disables HTTP, so HTTPS only
24 #PerlSetVar FreesideSecure 1
25
26 #prevents cookie theft via JS
27 PerlSetVar FreesideHttpOnly 1
28
29 <Directory %%%FREESIDE_DOCUMENT_ROOT%%%>
30
31     #work around Apache2::AuthCookie vs. mod_dir
32     DirectoryIndex disabled
33     Options -Indexes
34     #XXX need to also work properly for installs w/o /freeside/ in path
35     RewriteEngine On
36     RewriteBase /freeside/
37     RewriteRule ^/?$ /freeside/index.html [L,R=301]
38
39     AuthName Freeside
40     AuthType FS::AuthCookieHandler24
41     PerlAuthenHandler FS::AuthCookieHandler24->authenticate
42     require valid-user
43
44     <Files ~ "(\.cgi|\.html)$">
45         SetHandler perl-script
46         PerlHandler HTML::Mason
47     </Files>
48
49 </Directory>
50
51 <Files login>
52     AuthName Freeside
53     AuthType FS::AuthCookieHandler24
54     SetHandler perl-script
55     PerlHandler FS::AuthCookieHandler24->login
56 </Files>
57
58 <Directory %%%FREESIDE_DOCUMENT_ROOT%%%/loginout/>
59     <Files "login.html">
60         Satisfy any
61     </Files>
62 </Directory>
63
64 <Directory %%%FREESIDE_DOCUMENT_ROOT%%%/elements/>
65     <Files "freeside.css">
66         Satisfy any
67     </Files>
68
69     <Files ~ "(\.html)$">
70         Deny from all
71         SetHandler None
72     </Files>
73 </Directory>
74
75 <Directory %%%FREESIDE_DOCUMENT_ROOT%%%/rt/Helpers/>
76     SetHandler perl-script
77     PerlHandler HTML::Mason
78 </Directory>
79
80 <Directory %%%FREESIDE_DOCUMENT_ROOT%%%/rt/REST/1.0/NoAuth/>
81     Satisfy any
82 </Directory>
83
84 <Directory %%%FREESIDE_DOCUMENT_ROOT%%%/REST/>
85     Satisfy any
86     SetHandler perl-script
87     PerlHandler HTML::Mason
88 </Directory>