Echo File replace to CAT
This commit is contained in:
@@ -414,7 +414,7 @@ http {
|
||||
include /etc/nginx/sites-enabled/*;
|
||||
}
|
||||
EOF
|
||||
echo "
|
||||
cat <<EOF > /etc/nginx/sites-available/default
|
||||
#fastcgi_cache_key \$scheme\$request_method\$host\$request_uri;
|
||||
#add_header X-Cache "\$upstream_cache_status";
|
||||
|
||||
@@ -476,7 +476,8 @@ echo "
|
||||
# With php-cgi (or other tcp sockets):
|
||||
#fastcgi_pass 127.0.0.1:9000;
|
||||
}
|
||||
}" > /etc/nginx/sites-available/default
|
||||
}
|
||||
EOF
|
||||
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
|
||||
systemctl reload nginx
|
||||
|
||||
Reference in New Issue
Block a user