Update 'Apache-Installer.sh'
This commit is contained in:
@@ -3,8 +3,7 @@
|
|||||||
###============================================================
|
###============================================================
|
||||||
## Zet comments hieronder:
|
## Zet comments hieronder:
|
||||||
#
|
#
|
||||||
# Netdata: $domain/netata ipv $domain:1999
|
#
|
||||||
# Letsencrypt: Fix (onder in file) toepassen
|
|
||||||
#
|
#
|
||||||
##=============================================================
|
##=============================================================
|
||||||
|
|
||||||
@@ -39,6 +38,7 @@ EOF
|
|||||||
cp /etc/apache2/sites-available/000-default.conf /etc/apache2/sites-available/"$domain.conf"
|
cp /etc/apache2/sites-available/000-default.conf /etc/apache2/sites-available/"$domain.conf"
|
||||||
cat <<EOF > /etc/apache2/sites-available/"$domain.conf"
|
cat <<EOF > /etc/apache2/sites-available/"$domain.conf"
|
||||||
<VirtualHost *:80>
|
<VirtualHost *:80>
|
||||||
|
Protocols h2 http/1.1
|
||||||
#netdata here
|
#netdata here
|
||||||
ServerAdmin $email
|
ServerAdmin $email
|
||||||
ServerName $domain
|
ServerName $domain
|
||||||
@@ -56,6 +56,7 @@ cat <<EOF > /etc/apache2/sites-available/"$domain.conf"
|
|||||||
EOF
|
EOF
|
||||||
a2ensite $domain
|
a2ensite $domain
|
||||||
a2dissite 000-default
|
a2dissite 000-default
|
||||||
|
a2enmod http2
|
||||||
a2enmod proxy
|
a2enmod proxy
|
||||||
a2enmod proxy_http
|
a2enmod proxy_http
|
||||||
a2enmod rewrite
|
a2enmod rewrite
|
||||||
|
|||||||
Reference in New Issue
Block a user