From 7f3777cbcf802fe8f8d34a7d8e0fa918021f2b41 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Mon, 4 Feb 2019 20:37:37 -0600 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 343ec801..f159655a 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -193,8 +193,8 @@ NEWSITE(){ set \$base /var/www/${MAIN_SITE}; root \$base/public_html; - access_log /var/www/${NEW_SITE}/nginx_logs/access.log; - error_log /var/www/${NEW_SITE}/nginx_logs/error.log warn;" >> /etc/nginx/sites-available/${MAIN_SITE}.conf + access_log /var/log/nginx/${MAIN_SITE}-access.log; + error_log /var/log/nginx/${MAIN_SITE}-error.log warn;" >> /etc/nginx/sites-available/${MAIN_SITE}.conf if [ "${CREATE_SSL}" = "true" ]; then echo -e " @@ -253,7 +253,7 @@ NEWSITE(){ ssl_certificate_key /etc/letsencrypt/live/${MAIN_SITE}/privkey.pem;" >> /etc/nginx/sites-available/${MAIN_SITE}.conf fi echo -e " - access_log /var/www/!NGINX-Logs/proxy-${MAIN_SITE}.log proxy; + access_log /var/log/nginx/proxy-${MAIN_SITE}.log proxy; location / {" >> /etc/nginx/sites-available/${MAIN_SITE}.conf if [ "${CREATE_SSL}" = "true" ]; then