Welcome! Log In Create A New Profile

Advanced

Caching + Error_code inefficiences

August 25, 2009 12:47AM
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.
Subject Author Posted

Caching + Error_code inefficiences

icqheretic August 25, 2009 12:47AM

Re: Caching + Error_code inefficiences

icqheretic August 25, 2009 01:05AM

Re: Caching + Error_code inefficiences

Maxim Dounin August 25, 2009 08:06AM

Re: Caching + Error_code inefficiences

icqheretic August 25, 2009 12:19PM

Re: Caching + Error_code inefficiences

Maxim Dounin August 25, 2009 12:46PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 173
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready