Add try_files line in your location block .

[code language=”ruby”]
location / {
try_files $uri $uri/ /index.php?$args;
}
[/code]