'Apache-RevProxNGINX-Installer.sh' updaten

This commit is contained in:
ictmaatwerk
2018-09-11 10:31:27 +00:00
parent 8961850313
commit 6caeba1180

View File

@@ -74,7 +74,7 @@ cat <<EOF > /etc/apache2/sites-available/"$domain".conf
ServerAdmin $email ServerAdmin $email
ServerName $domain ServerName $domain
ServerAlias www.$domain ServerAlias www.$domain
DocumentRoot /var/www/$domain/public_html DocumentRoot /var/www/$domain/public_html/
ErrorLog \${APACHE_LOG_DIR}/error.log ErrorLog \${APACHE_LOG_DIR}/error.log
CustomLog \${APACHE_LOG_DIR}/access.log combined CustomLog \${APACHE_LOG_DIR}/access.log combined
</VirtualHost> </VirtualHost>
@@ -119,7 +119,7 @@ cat <<EOF > /etc/nginx/sites-available/apache
server { server {
listen 80; listen 80;
server_name $domain www.$domain; server_name $domain www.$domain;
root /var/www/$domain/public_html; root /var/www/$domain/public_html/;
index index.php index.htm index.html; index index.php index.htm index.html;
location / { location / {
@@ -138,11 +138,11 @@ server {
deny all; deny all;
} }
listen 443 ssl; #listen 443 ssl;
ssl_certificate /etc/letsencrypt/live/$domain/fullchain.pem; #ssl_certificate /etc/letsencrypt/live/$domain/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/$domain/privkey.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; #ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
} }
EOF EOF
ln -s /etc/nginx/sites-available/apache /etc/nginx/sites-enabled/apache 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" cat > /var/www/"$domain"/public_html/info.php <<- "EOF"
<?php <?php
phpinfo(); phpinfo();
?>
EOF EOF