cat > /etc/Nginx/sites-available/default_PHP <<ENDserver { listen 80 default; server_name _; root /var/www/$host; <--- $host is a problem child}END
当它完成将它注入文件时,我留下了这个:
server { listen 80 default; server_name _; root /var/www/;}
If any characters in word are quoted,the delimiter is the result of quote removal on word,and the lines in the here-document are not expanded.
cat > /etc/Nginx/sites-available/default_PHP <<"END"