How to configure nginx on MAMP?

MAMP is one of best tool for WordPress developers where we can develop and test on both popular servers apache and Nginx. In this article, I want to share some experience while working with WordPress on Nginx server.

1. Where is Nginx conf file in MAMP?


2. How to configure Nginx for WordPress Permalinks?

Edit/add/append this snippet inside server block in Nginx conf file

location / {

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


If your WordPress blog in subfolder

location /sub_folder_name {

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