rewrite urls to handle php routing
This commit is contained in:
parent
2391952437
commit
85bf3ee580
|
@ -25,6 +25,9 @@ http {
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~ \.php$ {
|
location ~ \.php$ {
|
||||||
|
if (!-e $request_filename){
|
||||||
|
rewrite ^(.*)$ /index.php break;
|
||||||
|
}
|
||||||
fastcgi_pass engelsystem:9000;
|
fastcgi_pass engelsystem:9000;
|
||||||
fastcgi_index index.php;
|
fastcgi_index index.php;
|
||||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||||
|
|
Loading…
Reference in New Issue