'Apache-RevProxNGINX-Installer.sh' updaten
This commit is contained in:
@@ -74,7 +74,7 @@ cat <<EOF > /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
|
||||
</VirtualHost>
|
||||
@@ -119,7 +119,7 @@ cat <<EOF > /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"
|
||||
<?php
|
||||
phpinfo();
|
||||
?>
|
||||
EOF
|
||||
Reference in New Issue
Block a user