'Apache-RevProxNGINX-Installer.sh' updaten
This commit is contained in:
@@ -69,7 +69,6 @@ systemctl reload apache2
|
|||||||
#-------------------#
|
#-------------------#
|
||||||
|
|
||||||
mkdir -p /var/www/"$domain"/public_html
|
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
|
cat <<EOF > /etc/apache2/sites-available/"$domain".conf
|
||||||
<VirtualHost *:80>
|
<VirtualHost *:80>
|
||||||
ServerAdmin $email
|
ServerAdmin $email
|
||||||
@@ -119,8 +118,8 @@ nginx -t
|
|||||||
cat <<EOF > /etc/nginx/sites-available/apache
|
cat <<EOF > /etc/nginx/sites-available/apache
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
server_name $domain;
|
server_name $domain www.$domain;
|
||||||
root /var/www/$domain;
|
root /var/www/$domain/public_html;
|
||||||
index index.php index.htm index.html;
|
index index.php index.htm index.html;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
@@ -142,7 +141,7 @@ server {
|
|||||||
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
|
||||||
|
|||||||
Reference in New Issue
Block a user