I have this store running on Apache, Magento 18.104.22.168
Then I decided to clone the application on a test server, running Nginx.
I first tried mine, naive rewrite:
rewrite ^(.*index\.php)\/(.*) $1?$2 last;
This worked, although not in the entire store. Recent viewed product pages didn't. They resulted in 404 by nginx.
Then I followed the steps outlined in: http://www.howtoforge.com/running-magento-22.214.171.124-on-nginx-lemp-on-debian-squeeze-ubuntu-11.04
My server configuration was updated. Then, nothing worked, and the 404 error was from Magento in every link (instead of nginx 404).
Can you please confirm that the above link configuration is good ? Notice that I just cloned the files from production server to the test server (didn't install Magento). It will be really nice if re-install isn't necessary.
I already updated
web/secure/base_url on the database.