From 94f1d9af2964f93c46bf22dbec7e266481074d58 Mon Sep 17 00:00:00 2001 From: tbergervoet Date: Wed, 3 Oct 2018 12:46:56 +0200 Subject: [PATCH] Update 'Apache-Installer.sh' --- Apache-Installer.sh | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/Apache-Installer.sh b/Apache-Installer.sh index 43500f9..f3a01fe 100644 --- a/Apache-Installer.sh +++ b/Apache-Installer.sh @@ -37,9 +37,10 @@ cat < /etc/apache2/mods-enabled/dir.conf EOF -cp /etc/apache2/sites-available/000-default.conf /etc/apache2/sites-available/"$domain".conf -cat < /etc/apache2/sites-available/"$domain".conf +cp /etc/apache2/sites-available/000-default.conf /etc/apache2/sites-available/"$domain.conf" +cat < /etc/apache2/sites-available/"$domain.conf" + #netdata here ServerAdmin $email ServerName $domain ServerAlias www.$domain @@ -54,8 +55,8 @@ cat < /etc/apache2/sites-available/"$domain".conf CustomLog \${APACHE_LOG_DIR}/access.log combined EOF -a2ensite $domain.conf -a2dissite 000-default.conf +a2ensite $domain +a2dissite 000-default ##---------## # PHP # @@ -233,13 +234,4 @@ EOF # Html Folder Perms # ##-----------------------## -chown -R www-data:www-data /var/www/"$domain"/html - -#Edit voor https, voeg het volgende toe aan $domain-le-ssl.conf tussen DocumentRoot en ErrorLog -# -# Options FollowSymLinks -# AllowOverride All -# -# Order allow,deny -# Allow from all -# \ No newline at end of file +chown -R www-data:www-data /var/www/"$domain"/html \ No newline at end of file