'Apache-RevProxNGINX-Installer.sh' updaten
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user