From 8bde6d145a9873937a50b9e66bc5c2e68d71503e Mon Sep 17 00:00:00 2001 From: SJ Date: Tue, 28 Jul 2015 21:58:17 +0200 Subject: [PATCH] updated nginx config --- contrib/webserver/piler-nginx.conf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/contrib/webserver/piler-nginx.conf b/contrib/webserver/piler-nginx.conf index c6fd503f..0c80292f 100644 --- a/contrib/webserver/piler-nginx.conf +++ b/contrib/webserver/piler-nginx.conf @@ -13,6 +13,7 @@ server { location / { index index.php index.html; + try_files $uri $uri/ /index.php; } #error_page 404 /404.html; @@ -23,6 +24,8 @@ server { } location ~ [^/]\.php(/|$) { + fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; + fastcgi_split_path_info ^(.+?\.php)(/.*)$; if (!-f $document_root$fastcgi_script_name) { return 404;