'RevProxySimple.sh' updaten
This commit is contained in:
@@ -54,10 +54,19 @@ nginx_ensite "$domain"
|
||||
apt install -y apache2
|
||||
mv /etc/apache2/ports.conf /etc/apache2/ports.conf.default
|
||||
echo "Listen $server_ip:8080" | tee /etc/apache2/ports.conf
|
||||
a2dissite 000-default
|
||||
cp /etc/apache2/sites-available/000-default.conf /etc/apache2/sites-available/"$domain".conf
|
||||
sed -i 's/:80/:8080/g' /etc/apache2/sites-available/"$domain".conf
|
||||
cat <<EOF > /etc/apache2/sites-available/"$domain".conf
|
||||
<VirtualHost *:80>
|
||||
ServerAdmin $email
|
||||
ServerName $domain
|
||||
ServerAlias www.$domain
|
||||
DocumentRoot /var/www/$domain/public_html
|
||||
ErrorLog \${APACHE_LOG_DIR}/error.log
|
||||
CustomLog \${APACHE_LOG_DIR}/access.log combined
|
||||
</VirtualHost>
|
||||
EOF
|
||||
a2ensite "$domain"
|
||||
a2dissite 000-default
|
||||
|
||||
##---------##
|
||||
# PHP #
|
||||
|
||||
Reference in New Issue
Block a user