rewrite urls to handle php routing

main
marudor 7 years ago committed by msquare
parent 2391952437
commit 85bf3ee580

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

Loading…
Cancel
Save