Scalr/scalr/master/app/www/.htaccess
<IfModule mod_deflate.c>
SetOutputFilter DEFLATE
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/x-js text/javascript text/css
AddOutputFilterByType DEFLATE application/xml application/xhtml+xml application/x-javascript application/javascript
AddOutputFilterByType DEFLATE application/json
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4.0[678] no-gzip
BrowserMatch bMSIE !no-gzip !gzip-only-text/html
# Don't compress images
SetEnvIfNoCase Request_URI
.(?:gif|jpe?g|png)$ no-gzip dont-vary
SetEnvIfNoCase Request_URI
.(?:exe|t?gz|zip|bz2|sit|rar)$
no-gzip dont-vary
SetEnvIfNoCase Request_URI .pdf$ no-gzip dont-vary
</IfModule>
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access 1 week"
ExpiresByType image/jpeg "access 1 week"
ExpiresByType image/gif "access 1 week"
ExpiresByType image/png "access 1 week"
ExpiresByType text/css "access 1 week"
ExpiresByType application/pdf "access 1 month"
ExpiresByType text/x-javascript "access 1 week"
ExpiresByType application/x-shockwave-flash "access 1 week"
ExpiresByType image/x-icon "access 1 year"
ExpiresDefault "access 2 days"
</IfModule>
<IfModule mod_setenvif.c>
BrowserMatch "MSIE" force-no-vary
BrowserMatch "Mozilla/4.[0-9]{2}" force-no-vary
</IfModule>
<IfModule mod_headers.c>
<FilesMatch .*.(js|css)$>
Header set Cache-control: private
</FilesMatch>
<FilesMatch .*.(gif|jpg|png)$>
Header set Cache-control: public
</FilesMatch>
Header unset Etag
FileETag none
</IfModule>
RewriteEngine On
# htaccess forbidden
RewriteRule .htaccess - [F]
RewriteRule .svn - [F]
RewriteRule ^storage/keys/([0-9]+)/(.*).pem$ farms_view.php?id=$1&task=download_private_key [NE,L]
#Farm events RSS
RewriteRule ^storage/events/([0-9]+)/rss.xml$ rss.xml.php?farmid=$1 [NE,L]
#Environment
RewriteRule ^query-env/([0-9-]+)/(.*)$ environment.php?version=$1&operation=$2&%{QUERY_STRING} [NE,L]
# New UI Controler
RewriteRule ^ui/js/(.*)-[0-9]+.js ui/js/$1.js [NE,L]
RewriteRule ^ui/js/(.*)-[0-9]+.css ui/js/$1.css [NE,L]
RewriteRule ^ui2/js/(.*)-[0-9]+.js ui2/js/$1.js [NE,L]
RewriteRule ^ui2/js/(.*)-[0-9]+.css ui2/js/$1.css [NE,L]
# Show standard 404 error for not-found files
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ui2/ - [L,R=404]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
#RewriteCond %{REQUEST_URI} ^[^.]+$
RewriteRule ^(v[0-9]+)/.*$ /api.php?version=$1&%{QUERY_STRING} [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^api/(user|account|admin).(.+?).(yml|yaml)$ /public/describeApiSpec?service=$1&version=$2&%{QUERY_STRING} [L]
RewriteRule ^api/(vd.*?)/(user|account|admin)/.*$ /restapi.php [L]
RewriteRule ^api/(user|account|admin)/.*$ /restapi.php [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
#RewriteCond %{REQUEST_URI} ^[^.]+$
RewriteRule ^.*$ /ui.php [L]
On Github License
Files