Consider:
[code]
fastcgi_cache_path storage/cache levels=2:2 keys_zone=cacheresp:50m inactive=25m max_size=2000M;
fastcgi_temp_path storage/temp/;
fastcgi_cache_valid any 10s;
location / {
root html;
index index.html;
fastcgi_pass unix:/tmp/php-fcgi.socket
include fastcgi_params;
[b]fastcgi_cache cfcheckresp;[/b]
[b]error_page 404 403 301 302 303 = @backend;[/b]
}
location @backend {
proxy_pass http://127.0.0.1:8070;
}
[/code]
Edited 4 time(s). Last edit at 08/25/2009 12:55AM by icqheretic.