Update 'Extra_Domains/Apache_Domain.sh'
This commit is contained in:
@@ -11,8 +11,8 @@
|
|||||||
# Apache #
|
# Apache #
|
||||||
##------------##
|
##------------##
|
||||||
|
|
||||||
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>
|
||||||
ServerAdmin $email
|
ServerAdmin $email
|
||||||
ServerName $domain
|
ServerName $domain
|
||||||
@@ -22,7 +22,7 @@ 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
|
||||||
|
|
||||||
##----------------##
|
##----------------##
|
||||||
# PHPMyAdmin #
|
# PHPMyAdmin #
|
||||||
|
|||||||
Reference in New Issue
Block a user