From 11ccabc5841e08deb985e498f1a09b3baec8dab2 Mon Sep 17 00:00:00 2001 From: Mitesh Shah Date: Thu, 20 Feb 2014 13:09:44 +0530 Subject: [PATCH] Fixed size 50MB for fastcgi.conf --- etc/nginx/conf.d/fastcgi.conf | 2 +- install.sh | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/etc/nginx/conf.d/fastcgi.conf b/etc/nginx/conf.d/fastcgi.conf index fba35dfd..15e84bf9 100644 --- a/etc/nginx/conf.d/fastcgi.conf +++ b/etc/nginx/conf.d/fastcgi.conf @@ -1,6 +1,6 @@ # Fastcgi Cahe Settings -fastcgi_cache_path /var/run/nginx-cache levels=1:2 keys_zone=WORDPRESS:500m inactive=60m; +fastcgi_cache_path /var/run/nginx-cache levels=1:2 keys_zone=WORDPRESS:50m inactive=60m; fastcgi_cache_key "$scheme$request_method$host$request_uri"; fastcgi_cache_use_stale error timeout invalid_header updating http_500 http_503; fastcgi_cache_valid any 1h; diff --git a/install.sh b/install.sh index bbb8d081..a1985437 100644 --- a/install.sh +++ b/install.sh @@ -158,11 +158,11 @@ then fi # Adjust FastCGI Cache Size 20% Of /var/run -VARRUNSIZE=$(df --block-size=M /var/run | awk '{print $4}' | tail -n1 |cut -d'M' -f1) -FCSIZE=$(expr $VARRUNSIZE \* 25 / 100) +#VARRUNSIZE=$(df --block-size=M /var/run | awk '{print $4}' | tail -n1 |cut -d'M' -f1) +#FCSIZE=$(expr $VARRUNSIZE \* 25 / 100) # Change Size -sed -i "s/500m/$FCSIZE\m/" /usr/share/easyengine/nginx/conf.d/fastcgi.conf || OwnError "Unable To Change Fastcgi Cache Size" +#sed -i "s/500m/$FCSIZE\m/" /usr/share/easyengine/nginx/conf.d/fastcgi.conf || OwnError "Unable To Change Fastcgi Cache Size" # Git Config Settings EEGITNAME=$(git config user.name)