summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nginx.conf3
1 files changed, 3 insertions, 0 deletions
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;