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; }