'Apache-RevProxNGINX-Installer.sh' updaten
This commit is contained in:
@@ -68,9 +68,9 @@ systemctl reload apache2
|
|||||||
# VHOST APACHE #
|
# VHOST APACHE #
|
||||||
#-------------------#
|
#-------------------#
|
||||||
|
|
||||||
mkdir -v /var/www/$domain/public_html
|
mkdir -v /var/www/"$domain"/public_html
|
||||||
echo "<?php phpinfo(); ?>" | tee /var/www/$domain/public_html/info.php
|
echo "<?php phpinfo(); ?>" | tee /var/www/"$domain"/public_html/info.php
|
||||||
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
|
||||||
@@ -80,7 +80,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
|
a2ensite $domain.conf
|
||||||
systemctl reload apache2
|
systemctl reload apache2
|
||||||
|
|
||||||
#-------------------#
|
#-------------------#
|
||||||
@@ -113,7 +113,7 @@ rm /etc/nginx/sites-enabled/default
|
|||||||
nginx -t
|
nginx -t
|
||||||
|
|
||||||
#-------------------#
|
#-------------------#
|
||||||
# RESERVE PROXY #
|
# REVERSE PROXY #
|
||||||
#-------------------#
|
#-------------------#
|
||||||
|
|
||||||
cat <<EOF > /etc/nginx/sites-available/apache
|
cat <<EOF > /etc/nginx/sites-available/apache
|
||||||
|
|||||||
Reference in New Issue
Block a user