diff options
author | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2011-04-04 08:46:08 +0000 |
---|---|---|
committer | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2011-04-04 08:46:08 +0000 |
commit | 038525403ebcc1d69436adad9bc1cfabb371dae1 (patch) | |
tree | 429e397cb6b10f1d05410e5b42f2630c21083281 /sca-cpp/trunk/modules/edit/start | |
parent | 37104d47a3ce5234ff708588b68e8d9cbd13131d (diff) |
Fix performance and security issues reported by pagespeed and skipfish.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1088508 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rwxr-xr-x | sca-cpp/trunk/modules/edit/start | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/sca-cpp/trunk/modules/edit/start b/sca-cpp/trunk/modules/edit/start index e377299c92..9b6f1ed21d 100755 --- a/sca-cpp/trunk/modules/edit/start +++ b/sca-cpp/trunk/modules/edit/start @@ -42,15 +42,19 @@ EOF # Configure app home pages cat >>tmp/conf/dvhost.conf <<EOF -# Redirect to app home page -RewriteEngine On -RewriteRule ^/$ /index.html [R] - -# Error pages +# App error pages ErrorDocument 404 /public/notfound.html ErrorDocument 401 /public/notauth.html ErrorDocument 500 /public/oops.html +# Redirect www to main home page +RewriteEngine on +RewriteCond %{HTTP_HOST} ^www\.sca-store\.com [NC] +RewriteCond %{SERVER_PORT} !^80$ +RewriteRule .* http://sca-store.com:%{SERVER_PORT}%{REQUEST_URI} [L,R] +RewriteCond %{HTTP_HOST} ^www\.sca-store\.com [NC] +RewriteRule .* http://sca-store.com%{REQUEST_URI} [L,R] + EOF # Configure SCA contributions @@ -75,6 +79,9 @@ EOF # Create app links and sub-directories if needed ./mkapplinks +# Create application database directories +mkdir -p tmp/appdata/filedb + # Start memcached ../../components/cache/memcached-start 11211 |