File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed
Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change 88
99# Allow Fast CGI Cache to be enabled for Nginx Standalone
1010if [ -e " /etc/nginx/nginx.conf" ]; then
11- echo " [*] Update Nginx to support fast cgi cache"
12-
1311 check=$( cat /etc/nginx/nginx.conf | grep ' fastcgi_cache_path' ) ;
1412 if [ -z " $check " ]; then
15- echo ' [*] Install fast cgi cache support'
16-
13+ echo " [ * ] Updating Nginx to support fast cgi cache..."
1714 sed -i ' s/# Cache bypass/# FastCGI Cache settings\n fastcgi_cache_path \/var\/cache\/nginx\/php-fpm levels=2\n keys_zone=fcgi_cache:10m inactive=60m max_size=1024m;\n fastcgi_cache_key \"$host$request_uri $cookie_user\";\n fastcgi_temp_path \/var\/cache\/nginx\/temp;\n fastcgi_ignore_headers Expires Cache-Control;\n fastcgi_cache_use_stale error timeout invalid_header;\n fastcgi_cache_valid any 1d;\n\n # Cache bypass/g' /etc/nginx/nginx.conf
18-
19- else
20- echo ' [!] fastcgi_cache_path found skipping install of fast cgi cache support!'
2115 fi
2216fi
You can’t perform that action at this time.
0 commit comments