Update 'installer.sh'
This commit is contained in:
21
installer.sh
21
installer.sh
@@ -56,13 +56,13 @@ chown -R www-data:www-data /var/www/"$domain"/html
|
||||
##-----------##
|
||||
# NGINX #
|
||||
##-----------##
|
||||
echo "NGINX"
|
||||
|
||||
#installing nginx from apt
|
||||
apt install -y nginx
|
||||
wget -q -t7 https://git.ictmaatwerk.com/VPS-scripts/Ubuntu-Web/raw/branch/master/config/nginx/nginx-default.conf -O /etc/nginx/nginx.conf
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
cat <<EOF > /etc/nginx/sites-available/"$domain"
|
||||
#fastcgi_cache_path /etc/nginx/cache levels=1:2 keys_zone=MYAPP:100m max_size=10g inactive=1440m;
|
||||
|
||||
@@ -163,20 +163,7 @@ server {
|
||||
}
|
||||
EOF
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#wget -q -t7 https://git.ictmaatwerk.com/VPS-scripts/Ubuntu-Mail/raw/branch/omega/config/nginx/domainconfig.cf -O /etc/nginx/sites-available/$domain
|
||||
sed -i -e 's/DOMAINNAME/'$domain'/' -e 's/phpPHPVER/'php${phpver}'/' /etc/nginx/sites-available/$domain
|
||||
ln -s /etc/nginx/sites-available/"$domain" /etc/nginx/sites-enabled/
|
||||
|
||||
##-------------------------------##
|
||||
# NGINX Single core bug fix #
|
||||
|
||||
Reference in New Issue
Block a user