summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarudor <marudor@marudor.de>2018-02-11 19:13:18 +0100
committermsquare <msquare@notrademark.de>2018-08-19 16:44:33 +0200
commit85bf3ee580e80c495c9cd0819cddd03ef16047ed (patch)
tree202519c6b565b91bcc4077486195261948ee2e65
parent2391952437b2e48d5e6cd2eb7b647f3eb3c3bf56 (diff)
rewrite urls to handle php routing
-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;