'Apache-RevProxNGINX-Installer.sh' updaten

This commit is contained in:
ictmaatwerk
2018-09-11 09:20:03 +00:00
parent 8cdd18cc78
commit 9dd41710ae

View File

@@ -68,9 +68,9 @@ systemctl reload apache2
# VHOST APACHE #
#-------------------#
mkdir -v /var/www/$domain/public_html
echo "<?php phpinfo(); ?>" | tee /var/www/$domain/public_html/info.php
cat <<EOF > /etc/apache2/sites-available/$domain.conf
mkdir -v /var/www/"$domain"/public_html
echo "<?php phpinfo(); ?>" | tee /var/www/"$domain"/public_html/info.php
cat <<EOF > /etc/apache2/sites-available/"$domain".conf
<VirtualHost *:80>
ServerAdmin $email
ServerName $domain
@@ -80,7 +80,7 @@ cat <<EOF > /etc/apache2/sites-available/$domain.conf
CustomLog \${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
EOF
a2ensite $domain
a2ensite $domain.conf
systemctl reload apache2
#-------------------#
@@ -113,7 +113,7 @@ rm /etc/nginx/sites-enabled/default
nginx -t
#-------------------#
# RESERVE PROXY #
# REVERSE PROXY #
#-------------------#
cat <<EOF > /etc/nginx/sites-available/apache