Browse Source

Fastcgi Cache

old-stable
Mitesh Shah 12 years ago
parent
commit
17cb0cfed9
  1. 15
      setup/engine

15
setup/engine

@ -523,11 +523,22 @@ then
# Reload Nginx Configuration
NGINXRELOAD
elif [ "$5" = "fastcgi" ]
then
#elif [ "$5" = "fastcgi" ]
#then
# Taking Backup
mv /etc/nginx/sites-available/$DOMAIN \
/etc/nginx/sites-available/$DOMAIN.bak
# Updating Site
echo -e "\033[34m Updating $DOMAIN For Fastcgi Cache, Please Wait... \e[0m"
sed "s/example.com/$DOMAIN/g" \
/usr/share/easyengine/nginx/singlesite/fastcgi-cache.conf \
> /etc/nginx/sites-available/$DOMAIN \
|| OwnError "Unable To Update Configuration File For $DOMAIN"
# Reload Nginx Configuration
NGINXRELOAD
else
EngineHelp

Loading…
Cancel
Save