From e0dadd126736995053630123ff94d79809eab708 Mon Sep 17 00:00:00 2001 From: tbergervoet Date: Wed, 26 Sep 2018 12:11:04 +0000 Subject: [PATCH] Update 'RevProxyAdvanced.sh' --- RevProxyAdvanced.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/RevProxyAdvanced.sh b/RevProxyAdvanced.sh index c04ddf5..86facc7 100644 --- a/RevProxyAdvanced.sh +++ b/RevProxyAdvanced.sh @@ -136,7 +136,7 @@ cat < /etc/nginx/sites-available/"$domain" server { listen 80; server_name $domain www.$domain; - root /var/www/$domain/html/; + root /var/www/$domain/html; index index.php index.htm index.html; location / { @@ -173,15 +173,15 @@ cat < /etc/nginx/sites-available/"$domain" server { listen 80 default_server; - root /usr/share/nginx/example.com; + root /var/www/$domain/html; index index.php index.html index.htm; server_name example.com www.example.com; location / { - try_files $uri $uri/ /index.php; + try_files \$uri \$uri/ /index.php; } - location ~ \.php$ { + location ~ \.php\$ { fastcgi_pass unix:/run/php/php7.2-fpm.sock; include snippets/fastcgi-php.conf; }