<Directory %%%FREESIDE_DOCUMENT_ROOT%%%/rt>
RedirectMatch permanent (.*)/$ $1/index.html
</Directory>

<Directory %%%FREESIDE_DOCUMENT_ROOT%%%/rt/NoAuth>
SetHandler perl-script
PerlHandler HTML::Mason
</Directory>

<Directory %%%FREESIDE_DOCUMENT_ROOT%%%/rt/REST/1.0/NoAuth>
<Limit GET POST>
allow from all
Satisfy any   
SetHandler perl-script
PerlHandler HTML::Mason
</Limit>
</Directory>

<DirectoryMatch "^%%%FREESIDE_DOCUMENT_ROOT%%%/rt/.*NoAuth/images">
SetHandler None
</DirectoryMatch>

<Directory %%%FREESIDE_DOCUMENT_ROOT%%%/rt/Admin> 
SetHandler perl-script 
PerlHandler HTML::Mason 
</Directory>

<Directory %%%FREESIDE_DOCUMENT_ROOT%%%/rt/Approvals> 
SetHandler perl-script 
PerlHandler HTML::Mason 
</Directory>

<Directory %%%FREESIDE_DOCUMENT_ROOT%%%/rt/Dashboards> 
SetHandler perl-script 
PerlHandler HTML::Mason 
</Directory>

<Directory %%%FREESIDE_DOCUMENT_ROOT%%%/rt/Download> 
SetHandler perl-script 
PerlHandler HTML::Mason 
</Directory>

<Directory %%%FREESIDE_DOCUMENT_ROOT%%%/rt/m> 
SetHandler perl-script 
PerlHandler HTML::Mason 
</Directory>
<Directory %%%FREESIDE_DOCUMENT_ROOT%%%/rt/m/ticket> 
SetHandler perl-script 
PerlHandler HTML::Mason 
</Directory>
<Directory %%%FREESIDE_DOCUMENT_ROOT%%%/rt/m/tickets> 
SetHandler perl-script 
PerlHandler HTML::Mason 
</Directory>

<Directory %%%FREESIDE_DOCUMENT_ROOT%%%/rt/Search> 
SetHandler perl-script 
PerlHandler HTML::Mason 
</Directory>

<Directory %%%FREESIDE_DOCUMENT_ROOT%%%/rt/Ticket/Attachment> 
SetHandler perl-script 
PerlHandler HTML::Mason 
</Directory>

<Directory %%%FREESIDE_DOCUMENT_ROOT%%%/rt/Ticket/AttachmentWithHeaders> 
SetHandler perl-script 
PerlHandler HTML::Mason 
</Directory>

<Directory %%%FREESIDE_DOCUMENT_ROOT%%%/rt/Ticket/Graphs> 
SetHandler perl-script 
PerlHandler HTML::Mason 
</Directory>

<DirectoryMatch "^%%%FREESIDE_DOCUMENT_ROOT%%%/rt/RTx/Statistics/.*/Elements>
SetHandler perl-script
PerlHandler HTML::Mason
</DirectoryMatch>

<DirectoryMatch "^%%%FREESIDE_DOCUMENT_ROOT%%%/rt/RTx/Statistics/.*/>
  <FilesMatch Results.tsv>
    SetHandler perl-script
    PerlHandler HTML::Mason
  </FilesMatch>
</DirectoryMatch>

<Directory %%%FREESIDE_DOCUMENT_ROOT%%%/rt/Schedule> 
SetHandler perl-script 
PerlHandler HTML::Mason 
</Directory>

#XXX support running without /freeside in 4.x?  or are we just giving up on
# that and putting a redirect in at / ?
Alias /freeside/rt/static "/opt/rt3/share/static"
<Directory "/opt/rt3/share/static">
<Limit GET POST>
allow from all
Satisfy any
</Limit>
</Directory>

