'Apache-RevProxNGINX-Installer.sh' updaten

This commit is contained in:
ictmaatwerk
2018-09-11 09:40:39 +00:00
parent 171ad1fc93
commit 8961850313

View File

@@ -69,7 +69,6 @@ systemctl reload apache2
#-------------------#
mkdir -p /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
@@ -119,8 +118,8 @@ nginx -t
cat <<EOF > /etc/nginx/sites-available/apache
server {
listen 80;
server_name $domain;
root /var/www/$domain;
server_name $domain www.$domain;
root /var/www/$domain/public_html;
index index.php index.htm index.html;
location / {
@@ -142,7 +141,7 @@ server {
listen 443 ssl;
ssl_certificate /etc/letsencrypt/live/$domain/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/$domain/privkey.pem;
include /etc/letsencrypt/options-ssl-nginx.conf;
#include /etc/letsencrypt/options-ssl-nginx.conf;
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
}
EOF