

![]() | Start a set with this search |
![]() | Include this search in one of my sets |
![]() | Exclude this search from one of my sets |
![]() | Permalink to these results Paste this link in email or IM: |
| Atom feed for tracking future search results Paste this URL into your reader: |
14 messages in ru.sysoev.nginxRe: nginx-0.6.4| From | Sent On | Attachments |
|---|---|---|
| Igor Sysoev | Jul 17, 2007 3:10 am | |
| Janko Hauser | Jul 17, 2007 3:31 am | |
| Igor Sysoev | Jul 17, 2007 3:44 am | |
| Ken | Jul 17, 2007 3:46 am | |
| Janko Hauser | Jul 17, 2007 5:42 am | |
| Igor Sysoev | Jul 17, 2007 6:16 am | |
| Janko Hauser | Jul 17, 2007 6:52 am | |
| Janko Hauser | Jul 17, 2007 3:02 pm | |
| Igor Sysoev | Jul 17, 2007 9:51 pm | |
| 焦胜强 | Jul 17, 2007 11:12 pm | |
| Igor Sysoev | Jul 17, 2007 11:20 pm | |
| Igor Sysoev | Jul 18, 2007 2:11 am | |
| Aleksandar Lazic | Jul 21, 2007 2:10 am | |
| Denis F. Latypoff | Jul 21, 2007 2:18 am |

![]() | Permalink for this message Paste this link in email or IM: |
![]() | Permalink for this thread Paste this link in email or IM: |
| Atom feed for this thread Paste this URL into your reader: |
| Subject: | Re: nginx-0.6.4 | Actions... |
|---|---|---|
| From: | Janko Hauser (jh-/...@public.gmane.org) | |
| Date: | Jul 17, 2007 3:02:54 pm | |
| List: | ru.sysoev.nginx | |
Am 17.07.2007 um 15:53 schrieb Janko Hauser:
Am 17.07.2007 um 15:16 schrieb Igor Sysoev:
On Tue, Jul 17, 2007 at 02:43:17PM +0200, Janko Hauser wrote:
Am 17.07.2007 um 12:44 schrieb Igor Sysoev:
proxy_store is not cache, it's rather mirror on demand:
location /images/ { root /data/www; error_page 404 = /fetch$uri; }
location /fetch { internal;
proxy_pass http://backend; proxy_store on; proxy_store_access user:rw group:rw all:r; proxy_temp_path /data/temp;
alias /data/www; }
if file is not found, then it will be fetched from backend and stored in 'root/alias' or in path specified explicitly:
proxy_store /data/www$original_uri;
Ah, that makes things clearer. Is it possible to steer this from the backend by setting headers in the response or some other means? But this alone will help a lot, thanks.
proxy_store /data/www$http_upstream_some_header;
Ah, great, first I thought, this would set only the location, but if the backend sets a "wrong" path, the backend can actually decide, if its content should be stored. The flexibility of nginx is amazing.
Hm, thinking about this some more, the setting of a wrong path would nevertheless mean, that something is written everytime the page is called. It would be better to have some form of conditional, preferable by the existence of a specific header, which can decide if proxy_store directive is active, and the return value from the backend is stored.
Perhaps this is out of scope of the mechanism.
With regards,
__Janko Hauser
-- Janko Hauser email: jhauser-/5Il3xaTTYezQB+pC5n...@public.gmane.org mobile: +49 1721 641552







