Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


   


   


   















      :: nginx-ru
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: nginx image hostin g



SSD .

. 64 3 ӣ .

ģ , ssd , 12.34.56.78
ģ (proxy_store)

location / {
root /mnt/ssd64/img_cache;
default_type image/jpeg;
error_page 404 = @fetch; # Like in doc, cause "try_files $uri @fetch =403;" doesn't work
log_not_found off;
open_file_cache_errors off;
}

location @fetch {
internal;

proxy_pass http://12.34.56.78
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;

proxy_store on;
proxy_store_access user:rw group:rw all:r;

proxy_buffering off;
proxy_temp_path /mnt/ssd64/img_cache_temp; ## On same fs where root for fast mv
root /mnt/ssd64/img_cache;
}





8 2010 . 9:27 Andrey Velikoredchanin <uncleandyv@xxxxxxxxx> :
8 2010 . 3:07 squirl <andriy.tovstik@xxxxxxxxx> :

.

, . img. , "" .

. , Amazon S3. .

_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://nginx.org/mailman/listinfo/nginx-ru




--
Regards,
Slava
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://nginx.org/mailman/listinfo/nginx-ru


 




Copyright © Lexa Software, 1996-2009.