Welcome! Log In Create A New Profile

Advanced

Re: Caching question for large (ish) file

July 13, 2011 03:18PM
Quoting Richard Kearsley <Richard.Kearsley@m247.com>:

> Show us the conf line where the cache is defined
>
> Sent from my iPhone
>

Hey Richard,

Here is the full nginx.conf file >.<


user nobody;
worker_processes 4;

error_log logs/error.log notice;

pid logs/nginx.pid;


events {
worker_connections 1024;
}

http {
proxy_cache_path /var/www/cdn/site/cache levels=1:2
keys_zone=site-cdn:8m max_size=1000m inactive=600m;
proxy_temp_path /var/www/cdn/site/temp;
open_file_cache max=1000 inactive=300s;
open_file_cache_valid 360s;
open_file_cache_min_uses 2;
open_file_cache_errors off;
include mime.types;
include fastcgi.conf;
include proxy.conf;
sendfile on;
keepalive_timeout 65;
log_format main '$remote_addr - $remote_user [$time_local]
"$request" $status $body_bytes_sent "$http_referer" "$http_user_agent"
"$http_x_forwarded_for"';
upstream static.site.com {
server xx.xx.xx.xx:80;
}

server {
listen 80;
server_name static.site.com;
location / {
proxy_pass http://static.site.com;
proxy_cache site-cdn;
proxy_cache_valid 200 302 301 any 365d;
proxy_cache_use_stale updating;
proxy_temp_path /var/www/cdn/site/temp;
proxy_buffering on;
}
}





_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

Caching question for large (ish) file

robotman321 July 13, 2011 01:26PM

Re: Caching question for large (ish) file

Richard Kearsley July 13, 2011 03:06PM

Re: Caching question for large (ish) file

robotman321 July 13, 2011 03:18PM

Re: Caching question for large (ish) file

Richard Kearsley July 13, 2011 10:42PM

RE: Caching question for large (ish) file

robotman321 July 14, 2011 06:42AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 320
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