Re: How to cache image urls with query strings?

2017-02-24 Thread 0liver
We don't explicitly set the proxy_cache_key - we use the default value provided by NGINX. >From the docs at http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_cache_key I understood that the query string is part of the cache key - I'm reaching out for help because it doesn't work as I'

How to cache image urls with query strings?

2017-02-24 Thread 0liver
We've recently started delivering image urls with query strings for cropping, like http://images-camping.info/CampsiteImages/116914_Large.jpg?width=453&height=302&mode=crop We've also successfully been using the NGINX cache for our images *before* adding the query strings. Unfortunately, with th

Re: Handling nginx's too many open files even I have the correct ulimit

2013-06-25 Thread 0liver
Thanks a lot, Jader. Your hint saved me hours of additional headache after our site was almost unusable due to NGINX throwing tens of thousands of "24: Too many open files" errors. I chose to set *worker_rlimit_nofile* to 65536 = 2^16 for peace of mind :-) It's important to note, that the *worker

Re: Handling nginx's too many open files even I have the correct ulimit

2013-05-15 Thread 0liver
I'm facing the same problem here, but I found much lower settings on our machine (a VPS running Ubuntu 12.04): # the hard limit of open files www-data@215247:~$ ulimit -Hn 4096 # the soft limit of open files www-data@215247:~$ ulimit -Sn 1024 # maximum number of file descriptors enforced on a kern