Update 'Extra_Domains/Apache_Domain.sh'
This commit is contained in:
@@ -11,8 +11,8 @@
|
||||
# Apache #
|
||||
##------------##
|
||||
|
||||
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>
|
||||
ServerAdmin $email
|
||||
ServerName $domain
|
||||
@@ -22,7 +22,7 @@ cat <<EOF > /etc/apache2/sites-available/"$domain".conf
|
||||
CustomLog \${APACHE_LOG_DIR}/access.log combined
|
||||
</VirtualHost>
|
||||
EOF
|
||||
a2ensite $domain.conf
|
||||
a2ensite $domain
|
||||
|
||||
##----------------##
|
||||
# PHPMyAdmin #
|
||||
|
||||
Reference in New Issue
Block a user