Re: proxy_store doesn't create directories

2021-02-16 Thread Phil Endecott
Phil Endecott wrote: > I have just tried to use proxy_store for the first time and > it seems to almost work, but it looks like it does not create > the parent directories for the things that it needs to save. OK, I've got this working now. My aim is for a request to http:

proxy_store doesn't create directories

2021-02-15 Thread Phil Endecott
Dear Experts, I have just tried to use proxy_store for the first time and it seems to almost work, but it looks like it does not create the parent directories for the things that it needs to save. I am attempting to store things with quite a deep directory structure. Is this the intended behavio

Re: proxy_cache_valid depending on $host

2021-01-26 Thread Phil Endecott
Maxim Dounin wrote: On Mon, Jan 25, 2021 at 04:26:49PM +, Phil Endecott wrote: Is there some work-around to have different cache validity times for different hosts, in a caching proxy? Using different server{} blocks with different server_name's is the way to go, see http://nginx.

proxy_cache_valid depending on $host

2021-01-25 Thread Phil Endecott
Dear Experts, I wanted to write this: proxy_cache_valid 200 5m; if ($host ~ foo) { proxy_cache_valid 200 30d; } but proxy_cache_valid is not allowed in "if" blocks. Is there some work-around to have different cache validity times for different hosts, in a caching proxy? Thanks, Phil. __

Re: Can't get a simple proxy to cache anything

2021-01-24 Thread Phil Endecott
Maxim Dounin wrote: You haven't configured any proxy_cache_valid directives (see http://nginx.org/r/proxy_cache_valid for details), and the response doesn't have any cache validity headers, such as "Expires" or "Cache-Control: max-age=...". Thanks Maxim! It now seems to work. I guess I was e

Can't get a simple proxy to cache anything

2021-01-22 Thread Phil Endecott
Dear Experts, I am trying to set up a simple limited caching proxy; I have got proxying to work, but I can't get it to cache. I'm a software developer, working from my home office. I have a fast home network, a slow connection to the internet, and fast cloud servers (e.g. AWS). I'd like to be