Echo File replace to CAT
This commit is contained in:
@@ -414,7 +414,7 @@ http {
|
|||||||
include /etc/nginx/sites-enabled/*;
|
include /etc/nginx/sites-enabled/*;
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
echo "
|
cat <<EOF > /etc/nginx/sites-available/default
|
||||||
#fastcgi_cache_key \$scheme\$request_method\$host\$request_uri;
|
#fastcgi_cache_key \$scheme\$request_method\$host\$request_uri;
|
||||||
#add_header X-Cache "\$upstream_cache_status";
|
#add_header X-Cache "\$upstream_cache_status";
|
||||||
|
|
||||||
@@ -476,7 +476,8 @@ echo "
|
|||||||
# With php-cgi (or other tcp sockets):
|
# With php-cgi (or other tcp sockets):
|
||||||
#fastcgi_pass 127.0.0.1:9000;
|
#fastcgi_pass 127.0.0.1:9000;
|
||||||
}
|
}
|
||||||
}" > /etc/nginx/sites-available/default
|
}
|
||||||
|
EOF
|
||||||
ln -s /etc/nginx/sites-available/$domain /etc/nginx/sites-enabled/
|
ln -s /etc/nginx/sites-available/$domain /etc/nginx/sites-enabled/
|
||||||
sed -i 's/#cgi.fix_pathinfo=1/cgi.fix_pathinfo=0/g' /etc/php/7.2/fpm/php.ini
|
sed -i 's/#cgi.fix_pathinfo=1/cgi.fix_pathinfo=0/g' /etc/php/7.2/fpm/php.ini
|
||||||
systemctl reload nginx
|
systemctl reload nginx
|
||||||
|
|||||||
Reference in New Issue
Block a user