I've removed sending max-age directive from php script, and that helped. Thanks a lot!by i.s.ivanov2 - Nginx Mailing List - English
I've captured the debug output of the outlined problem: Expires tag is less than the date of request processing, but there is no expiration message like "http file cache expired: 4 1302149578 1302149592" Debug output: 2011/04/07 18:42:15 10373#0: *6 epoll add event: fd:16 op:3 ev:80000005 2011/04/07 18:42:15 10373#0: *6 http script var: "request" 2011/04/07 18:42:15 10by i.s.ivanov2 - Nginx Mailing List - English
And an additional question: why haven't nginx requested a new file, when "Expires" header becomes bigger than current date? Can it be caused by proxy_cache_valid any 10m; directive?by i.s.ivanov2 - Nginx Mailing List - English
I have a following servers structure: content.server contains an Apache instance, which processes one simple PHP script. On the same node Nginx is set as a caching proxy to that Apache. caching.server contains Nginx with proxy_cache directive, with upstream set to content.server Php script generates an XML file, that has a lifetime of 30 minutes. This is achieved by setting headers in PHP codby i.s.ivanov2 - Nginx Mailing List - English
And what if nginx is placed behind regular proxy server, without authorization? Is there a solution for such case?by i.s.ivanov2 - How to...
Solution is to use HttpLimitZone module (http://wiki.nginx.org/NginxHttpLimitZoneModule) with $host variable. http { limit_zone one $host 10m; limit_conn one 15; server { location /info/ { limit_conn one 10; } location /download/ { limit_conn one 1; } } }by i.s.ivanov2 - How to...
Situation: there is a local network, and I want to setup an nginx as caching proxy that will serve content taken from servers in the Internet to users in local network. Problem appears when access to the Internet from that local network is protected by some proxy server with authorization. Question: is there a way to configure nginx to pass all his requests through that proxy supplying login aby i.s.ivanov2 - How to...
There is an nginx server with 2 worker_threads and 500 worker_connections. I use Apache HTTP benchmarking tool (ab) to create >1500 clients that constantly requests cached data from nginx. In parallel I execute some wget-s and browser sessions with the same request. After some time nginx starts to refuse connections with clients receiving "connection reset by peer". Question: iby i.s.ivanov2 - How to...
Hello. I have a task of checking correctness of content, stored in nginx cache, so that users will not receive broken files (say, when there are problems on TCP level). I want to accomplish this task by automatically computing MD5 value for file being stored and comparing it with Content-MD5 header that came with that file. If values mismatch - nginx should re-request file from origin server.by i.s.ivanov2 - How to...