Changing the permalink settings in Wordpress when using Nginx will result in a 404 error when viewing your site. Add the following line to your “try files:” text box in Settings > Hosts > Nginx to fix this issue.

  $uri $uri/ /index.php?$args;
 

Restart your servers, close and reopen your browser. You will now see your individual posts instead of a 404 error when navigating through your Wordpress site.

MAMP

More information about using Wordpress with Nginx can be found here.