Browse Source

fix vhost.sh

lj2007331@gmail.com 5 years ago
parent
commit
645536cac6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      vhost.sh

+ 1 - 1
vhost.sh

@@ -512,7 +512,7 @@ What Are You Doing?
     [ -z "$(grep 'Listen 443' ${apache_install_dir}/conf/httpd.conf)" ] && sed -i "s@Listen 80@&\nListen 443@" ${apache_install_dir}/conf/httpd.conf
     [ -z "$(grep 'ServerName 0.0.0.0:443' ${apache_install_dir}/conf/httpd.conf)" ] && sed -i "s@ServerName 0.0.0.0:80@&\nServerName 0.0.0.0:443@" ${apache_install_dir}/conf/httpd.conf
   else
-    Nginx_conf="listen 80;\n  listen [::]:80;"
+    Nginx_conf=$(echo -e "listen 80;\n  listen [::]:80;")
   fi
 }