From 85bf3ee580e80c495c9cd0819cddd03ef16047ed Mon Sep 17 00:00:00 2001 From: marudor Date: Sun, 11 Feb 2018 19:13:18 +0100 Subject: [PATCH] rewrite urls to handle php routing --- nginx.conf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nginx.conf b/nginx.conf index b8e69b00..47f5ea6a 100644 --- a/nginx.conf +++ b/nginx.conf @@ -25,6 +25,9 @@ http { } location ~ \.php$ { + if (!-e $request_filename){ + rewrite ^(.*)$ /index.php break; + } fastcgi_pass engelsystem:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;