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;