From 6caeba1180282256ecbfdafb2398000553acec85 Mon Sep 17 00:00:00 2001 From: ictmaatwerk Date: Tue, 11 Sep 2018 10:31:27 +0000 Subject: [PATCH] 'Apache-RevProxNGINX-Installer.sh' updaten --- Apache-RevProxNGINX-Installer.sh | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/Apache-RevProxNGINX-Installer.sh b/Apache-RevProxNGINX-Installer.sh index 157c669..e5f4431 100644 --- a/Apache-RevProxNGINX-Installer.sh +++ b/Apache-RevProxNGINX-Installer.sh @@ -74,7 +74,7 @@ cat < /etc/apache2/sites-available/"$domain".conf ServerAdmin $email ServerName $domain ServerAlias www.$domain - DocumentRoot /var/www/$domain/public_html + DocumentRoot /var/www/$domain/public_html/ ErrorLog \${APACHE_LOG_DIR}/error.log CustomLog \${APACHE_LOG_DIR}/access.log combined @@ -119,7 +119,7 @@ cat < /etc/nginx/sites-available/apache server { listen 80; server_name $domain www.$domain; - root /var/www/$domain/public_html; + root /var/www/$domain/public_html/; index index.php index.htm index.html; location / { @@ -138,11 +138,11 @@ server { deny all; } - listen 443 ssl; - ssl_certificate /etc/letsencrypt/live/$domain/fullchain.pem; - ssl_certificate_key /etc/letsencrypt/live/$domain/privkey.pem; + #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; - ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; + #ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; } EOF ln -s /etc/nginx/sites-available/apache /etc/nginx/sites-enabled/apache @@ -344,5 +344,4 @@ wget https://raw.githubusercontent.com/amnuts/opcache-gui/master/index.php -O /v cat > /var/www/"$domain"/public_html/info.php <<- "EOF" EOF \ No newline at end of file