Update 'Apache-Installer.sh'
This commit is contained in:
@@ -37,9 +37,10 @@ cat <<EOF > /etc/apache2/mods-enabled/dir.conf
|
||||
</IfModule>
|
||||
EOF
|
||||
|
||||
cp /etc/apache2/sites-available/000-default.conf /etc/apache2/sites-available/"$domain".conf
|
||||
cat <<EOF > /etc/apache2/sites-available/"$domain".conf
|
||||
cp /etc/apache2/sites-available/000-default.conf /etc/apache2/sites-available/"$domain.conf"
|
||||
cat <<EOF > /etc/apache2/sites-available/"$domain.conf"
|
||||
<VirtualHost *:80>
|
||||
#netdata here
|
||||
ServerAdmin $email
|
||||
ServerName $domain
|
||||
ServerAlias www.$domain
|
||||
@@ -54,8 +55,8 @@ cat <<EOF > /etc/apache2/sites-available/"$domain".conf
|
||||
CustomLog \${APACHE_LOG_DIR}/access.log combined
|
||||
</VirtualHost>
|
||||
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
|
||||
#<Directory "/var/www/$domain/html">
|
||||
# Options FollowSymLinks
|
||||
# AllowOverride All
|
||||
#
|
||||
# Order allow,deny
|
||||
# Allow from all
|
||||
# </Directory>
|
||||
chown -R www-data:www-data /var/www/"$domain"/html
|
||||
Reference in New Issue
Block a user