Wordpress have a blank screen when i use nginx cache config

this is log file when all ok but no cache file created http://pastebin.com/aAX8v3ap

this is log file when cache file created but i have a blank screen http://pastebin.com/bmX1b9Yb

my nginx root@mx1/usr/local/etc/nginx> nginx -v nginx version: nginx/1.4.1

First, do not remove line fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;

Then try adding following line:

fastcgi_ignore_headers Cache-Control Expires

near fastcgi_cache_use_stale error timeout invalid_header http_500; line

Please refer to: http://rtcamp.com/groups/wordpress-nginx/forum/topic/fastcgi_cache-problem/#post-23895

Hi Rahul! Thank you! Cache files creating and now all working!

Glad to know it worked.

For future improvements, can you please share list of active plugins on your blog?

So far w3-total-cache and woocomerce are 2 plugins I know which needs this fix.

Hi Rahul! I have one problem and d't know how to fix it :( With cache configuration i have one issue. When user click to next page (for example 2) image example

i have next error in nginx config 2013/09/18 20:51:16 [error] 94921#0: *57512825 FastCGI sent in stderr: "Access to the script '/usr/local/www/data/www.sat-expert.com/page/2' has been denied (see security.limit_extensions)" while reading response header from upstream, client: 77.232.155.12, server: www.sat-expert.com, request: "GET /page/2 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm1.sock:", host: "www.sat-expert.com", referrer: "http://www.sat-expert.com/" 2013/09/18 20:51:22 [error] 94921#0: *57513055 FastCGI sent in stderr: "Access to the script '/usr/local/www/data/www.sat-expert.com/page/2' has been denied (see security.limit_extensions)" while reading response header from upstream, client: 92.113.195.203, server: www.sat-expert.com, request: "GET /page/2 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm1.sock:", host: "www.sat-expert.com", referrer: "http://www.sat-expert.com/"

<p>

and Access denied. in a blank screen.

in my php-fpm config i have line like this

security.limit_extensions = .php .php2 .php3 .php4 .php5

Attachment Link(s):

http://rtcamp.com/wp-content/uploads/rtMedia/topics/39819/2013/09/1379526819-clip-21kb.png

Turn on nginx's debug log. If its a live site, try debug_connection.

More details: http://rtcamp.com/wordpress-nginx/tutorials/nginx/debugging/

Basically debug log will tell you which file nginx is trying to access and why it is being denied.

This looks like permission issue though can't tell anything.