updated nginx config

This commit is contained in:
SJ 2015-07-28 21:58:17 +02:00
parent b03bb23f81
commit 8bde6d145a

View File

@ -13,6 +13,7 @@ server {
location / { location / {
index index.php index.html; index index.php index.html;
try_files $uri $uri/ /index.php;
} }
#error_page 404 /404.html; #error_page 404 /404.html;
@ -23,6 +24,8 @@ server {
} }
location ~ [^/]\.php(/|$) { location ~ [^/]\.php(/|$) {
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_split_path_info ^(.+?\.php)(/.*)$; fastcgi_split_path_info ^(.+?\.php)(/.*)$;
if (!-f $document_root$fastcgi_script_name) { if (!-f $document_root$fastcgi_script_name) {
return 404; return 404;