From a81656f82114b10d87bf0bbf99592feeece434cd Mon Sep 17 00:00:00 2001 From: wangchunsheng Date: Sat, 3 Mar 2012 00:35:26 +0000 Subject: [PATCH] + add the ztacces. --- www/.ztaccess | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 www/.ztaccess diff --git a/www/.ztaccess b/www/.ztaccess new file mode 100644 index 0000000000..08117d35b6 --- /dev/null +++ b/www/.ztaccess @@ -0,0 +1,28 @@ +Options +FollowSymLinks +SymLinksIfOwnerMatch + +# framework router settings. + + RewriteEngine On + RewriteCond %{REQUEST_FILENAME} !-d + RewriteCond %{REQUEST_FILENAME} !-f + RewriteRule (.*)$ /zentao/index.php/$1 [L] + + +# php settings. +php_value post_max_size 30M +php_flag file_uploads On +php_value upload_max_filesize 20M +php_value display_errors 1 + +# yslow settings. + +ExpiresActive On +ExpiresByType image/gif A2592000 +ExpiresByType image/jpeg A2592000 +ExpiresByType image/png A2592000 +ExpiresByType image/x-icon A2592000 +ExpiresByType application/javascript A2592000 +ExpiresByType application/x-shockwave-flash A2592000 +ExpiresByType text/css A604800 + +FileEtag none