I have installed nginx, FastCGI and PHP on my small server. WordPress 3. installed after a little of the monster fight, but it is installed and dealing well.

However, after i alter the permalink configurations to anything apart from default, I recieve 404 errors on every publish, article and page.

I realize this is one thing related to nginx not supporting .htaccess and WordPress getting wrongly identified as what to do whenever a page is requsted.

I have attempted a couple of rewrites within the nginx conf files as well as the nginx compatibility wordpress plugin neither have labored. With one rewrite I handled to prevent the 404 errors, but rather than WordPress locating the publish I had been once i basically experienced my PHP confirmation page. Bah.

Forums are full of individuals with similar issues. Does anybody possess a solution?

In your location / block,

add this and take away any non-specific rewrite rules:

try_files $uri $uri/ /index.php;

Perhaps you have attempted the nginx Compatibility plugin?

Plus ElasticDog appears use a fairly concise article on getting WP working with nginx - including getting pretty permalinks to operate.

Here's another article that appears to manage particularly with nginx rewrite rules for WordPress.

After much discomfort:

# if filename doesn't exist, take the request and pass to wordpress as a paramater
         if (!-e $request_filename) {
                rewrite ^/wordpress/(.+)$ /wordpress/index.php?q=$1 last;

When the asked for file doesn't exist, pass it to index.php. It's a little slow and i believe I would try to not make use of a query, however it works... :)