@medsha
Please remove the entire location /
block, in your current configuration ...
location / {
root /var/www;
index index.html index.htm index.php;
}
*and then*, please insert what's suggested by Jan, for location /
block...
location / {
try_files $uri $uri/ /index.php;
}
I hope this helps.