Update nodemgmt-scripts.sh
This commit is contained in:
@@ -193,8 +193,8 @@ NEWSITE(){
|
|||||||
set \$base /var/www/${MAIN_SITE};
|
set \$base /var/www/${MAIN_SITE};
|
||||||
root \$base/public_html;
|
root \$base/public_html;
|
||||||
|
|
||||||
access_log /var/www/${NEW_SITE}/nginx_logs/access.log;
|
access_log /var/log/nginx/${MAIN_SITE}-access.log;
|
||||||
error_log /var/www/${NEW_SITE}/nginx_logs/error.log warn;" >> /etc/nginx/sites-available/${MAIN_SITE}.conf
|
error_log /var/log/nginx/${MAIN_SITE}-error.log warn;" >> /etc/nginx/sites-available/${MAIN_SITE}.conf
|
||||||
|
|
||||||
if [ "${CREATE_SSL}" = "true" ]; then
|
if [ "${CREATE_SSL}" = "true" ]; then
|
||||||
echo -e "
|
echo -e "
|
||||||
@@ -253,7 +253,7 @@ NEWSITE(){
|
|||||||
ssl_certificate_key /etc/letsencrypt/live/${MAIN_SITE}/privkey.pem;" >> /etc/nginx/sites-available/${MAIN_SITE}.conf
|
ssl_certificate_key /etc/letsencrypt/live/${MAIN_SITE}/privkey.pem;" >> /etc/nginx/sites-available/${MAIN_SITE}.conf
|
||||||
fi
|
fi
|
||||||
echo -e "
|
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
|
location / {" >> /etc/nginx/sites-available/${MAIN_SITE}.conf
|
||||||
if [ "${CREATE_SSL}" = "true" ]; then
|
if [ "${CREATE_SSL}" = "true" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user