I'm having some issues with my WordPress setup. My server is using Nginx, Varnish, APC, and PHP-FPM. My permalinks all seem to work fine with the exception of previewing posts. For some odd reason, I get a 404 error page.
Whenever I preview posts within WordPress it brings me to a link like: http://www.domain.com/?p=986&preview=true which comes up as Page Not Found. Yet for all my published posts, the permalinks seem to work fine. My blog is currently using the Post name (domain.com/sample-post/) permalink setting.
Even when I change the permalinks to default I'm still available to view all the posts and pages in the default permalink setting(domain.com/?p=123). But still can't preview posts...
I do have the try files in my setup:
try_files $uri $uri/ /index.php?q=$uri&$args;
Any suggestions on what it could be?