diff options
author | marudor <marudor@marudor.de> | 2018-02-11 19:13:18 +0100 |
---|---|---|
committer | msquare <msquare@notrademark.de> | 2018-08-19 16:44:33 +0200 |
commit | 85bf3ee580e80c495c9cd0819cddd03ef16047ed (patch) | |
tree | 202519c6b565b91bcc4077486195261948ee2e65 /nginx.conf | |
parent | 2391952437b2e48d5e6cd2eb7b647f3eb3c3bf56 (diff) |
rewrite urls to handle php routing
Diffstat (limited to 'nginx.conf')
-rw-r--r-- | nginx.conf | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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; |