rewrite urls to handle php routing

This commit is contained in:
marudor 2018-02-11 19:13:18 +01:00 committed by msquare
parent 2391952437
commit 85bf3ee580
1 changed files with 3 additions and 0 deletions

View File

@ -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;