'Apache-RevProxNGINX-Installer.sh' updaten
This commit is contained in:
@@ -68,17 +68,17 @@ systemctl reload apache2
|
|||||||
# VHOST APACHE #
|
# VHOST APACHE #
|
||||||
#-------------------#
|
#-------------------#
|
||||||
|
|
||||||
mkdir -v /var/www/$domain
|
mkdir -v /var/www/$domain/public_html
|
||||||
echo "<?php phpinfo(); ?>" | tee /var/www/$domain/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 *:8080>
|
<VirtualHost *:80>
|
||||||
|
ServerAdmin $email
|
||||||
ServerName $domain
|
ServerName $domain
|
||||||
ServerAlias www.$domain
|
ServerAlias www.$domain
|
||||||
DocumentRoot /var/www/$domain
|
DocumentRoot /var/www/$domain/public_html
|
||||||
<Directory /var/www/$domain>
|
ErrorLog \${APACHE_LOG_DIR}/error.log
|
||||||
AllowOverride All
|
CustomLog \${APACHE_LOG_DIR}/access.log combined
|
||||||
</Directory>
|
</VirtualHost>
|
||||||
</VirtualHost>
|
|
||||||
EOF
|
EOF
|
||||||
a2ensite $domain
|
a2ensite $domain
|
||||||
systemctl reload apache2
|
systemctl reload apache2
|
||||||
|
|||||||
Reference in New Issue
Block a user