Update 'Apache-Installer.sh'
This commit is contained in:
@@ -37,9 +37,10 @@ cat <<EOF > /etc/apache2/mods-enabled/dir.conf
|
|||||||
</IfModule>
|
</IfModule>
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
cp /etc/apache2/sites-available/000-default.conf /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
|
cat <<EOF > /etc/apache2/sites-available/"$domain.conf"
|
||||||
<VirtualHost *:80>
|
<VirtualHost *:80>
|
||||||
|
#netdata here
|
||||||
ServerAdmin $email
|
ServerAdmin $email
|
||||||
ServerName $domain
|
ServerName $domain
|
||||||
ServerAlias www.$domain
|
ServerAlias www.$domain
|
||||||
@@ -54,8 +55,8 @@ cat <<EOF > /etc/apache2/sites-available/"$domain".conf
|
|||||||
CustomLog \${APACHE_LOG_DIR}/access.log combined
|
CustomLog \${APACHE_LOG_DIR}/access.log combined
|
||||||
</VirtualHost>
|
</VirtualHost>
|
||||||
EOF
|
EOF
|
||||||
a2ensite $domain.conf
|
a2ensite $domain
|
||||||
a2dissite 000-default.conf
|
a2dissite 000-default
|
||||||
|
|
||||||
##---------##
|
##---------##
|
||||||
# PHP #
|
# PHP #
|
||||||
@@ -233,13 +234,4 @@ EOF
|
|||||||
# Html Folder Perms #
|
# Html Folder Perms #
|
||||||
##-----------------------##
|
##-----------------------##
|
||||||
|
|
||||||
chown -R www-data:www-data /var/www/"$domain"/html
|
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>
|
|
||||||
Reference in New Issue
Block a user