I have followed all instructions from http://rtcamp.com/tutorials/wordpress-nginx-fastcgi-cache-purge-conditional/, but all I get is a blank screen. Folders get created within the fastcgi cache path, but no content is displayed and I cannot access the backend either.
Any idea??
Here's my previous working virtual host file:
server {
listen XXXXX;
server_name website.com www.website.com;
root /root/to/website;
index index.php;
location / {
try_files $uri $uri/ /index.php?q=$uri&$args;
}
# Deny access to hidden files
location ~* /\.ht {
deny all;
access_log off;
log_not_found off;
}
# Pass PHP scripts on to PHP-FPM
location ~* \.php$ {
try_files $uri /index.php;
fastcgi_index index.php;
fastcgi_pass unix:/path/to/php-fpm.sock;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
}
}
