</IfModule>
</Location>
-# TODO: as is, each sub-app will require a new Location.
-# need to investigate ways to avoid that.
<Location /eg/staff/>
Options -MultiViews
# any reuest that does not map to a template file
- # is redirected to the index. This allows us to
+ # is redirected to the index. This allows us to
# map multiple routes to the same application.
RewriteEngine On
RewriteCond %{PATH_INFO} !/staff/index
RewriteCond %{PATH_INFO} !/staff/t_*
RewriteRule .* /eg/staff/index [L,DPI]
+ # is this redundant?
+ <IfModule mod_headers.c>
+ Header append Cache-Control "public"
+ </IFModule>
+ <IfModule mod_deflate.c>
+ SetOutputFilter DEFLATE
+ BrowserMatch ^Mozilla/4 gzip-only-text/html
+ BrowserMatch ^Mozilla/4\.0[678] no-gzip
+ BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html
+ SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary
+ <IfModule mod_headers.c>
+ Header append Vary User-Agent env=!dont-vary
+ </IfModule>
+ </IfModule>
+</Location>
+
+<Location /eg/staff/fulfillment>
+ Options -MultiViews
+ # any reuest that does not map to a template file
+ # is redirected to the index. This allows us to
+ # map multiple routes to the same application.
+ RewriteEngine On
+ RewriteCond %{PATH_INFO} !/staff/fulfillment/index
+ RewriteCond %{PATH_INFO} !/staff/fulfillment/t_*
+ RewriteRule .* /eg/staff/fulfillment/index [L,DPI]
</Location>
+<Location /ff/fast_import>
+ SetHandler perl-script
+ PerlResponseHandler FulfILLment::WWW::FastImport
+ Options +ExecCGI
+ PerlSendHeader On
+ allow from all
+</Location>
+
+<Location /js/>
+ <IfModule mod_deflate.c>
+ SetOutputFilter DEFLATE
+ BrowserMatch ^Mozilla/4 gzip-only-text/html
+ BrowserMatch ^Mozilla/4\.0[678] no-gzip
+ BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html
+ SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary
+ </IfModule>
+ <IfModule mod_headers.c>
+ Header append Cache-Control "public"
+ Header append Vary User-Agent env=!dont-vary
+ </IfModule>
+</Location>
+
+
+
# Uncomment the following to force SSL for everything. Note that this defeats caching
# and you will suffer a performance hit.
#RewriteCond %{HTTPS} off