From 13f3fba28c0ef5bef4f5bcbfc85184d3af284b13 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Thu, 15 Oct 2020 12:44:42 +0200 Subject: [PATCH] Update nginx.conf --- conf/nginx.conf | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index 752e9fe..9256c53 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -5,6 +5,7 @@ location __PATH__/ { alias __FINALPATH__/; index index.php; + rewrite ^/(__PATH__/img/.*)$ /$1 break; rewrite ^/(__PATH__/js/.*)$ /$1 break; rewrite ^/(__PATH__/style/.*)$ /$1 break; @@ -17,14 +18,8 @@ location __PATH__/ { try_files $uri $uri/ index.php; location ~ [^/]\.php(/|$) { fastcgi_split_path_info ^(.+?\.php)(/.*)$; - fastcgi_pass unix:/var/run/php5-fpm.sock; + fastcgi_pass unix:/var/run/php__PHPVERSION__-fpm-__NAME__.sock; - # Filename to be changed if dedicated php-fpm process is required - # This is to be used INSTEAD of line above - # Don't forget to adjust scripts install/upgrade/remove/backup accordingly - # - #fastcgi_pass unix:/var/run/php__PHPVERSION__-fpm-__NAME__.sock; - fastcgi_index index.php; include fastcgi_params; fastcgi_param REMOTE_USER $remote_user;