Quantcast
Channel: Nginx Forum - Other discussion
Viewing all articles
Browse latest Browse all 972

Re: setting cache proxy on aws ec2

$
0
0
Hi

maybe I got confused here, so let me try to explain what I am trying to do:

user <-obj get-> ec2 <-obj get->s3
this is the general flow in which user access objects stored on s3 through ec2 url, nginx provide the ability for url masking.

inorder to utilize this i am trying to save objects (cache them?) on ec2 so that the next time this object will served it will be through the ec2 without accessing s3.
user <-obj get-> ec2 <-obj get->ec2 local cache

currently, with the above config, the url masking works fine, the problem is the the caching is not working.
here is the other (defualt) part of the config:

proxy_cache_path /var/cache/nginx levels=1:2 keys_zone=s3-cache:8m max_size=1000m inactive=600m;
proxy_temp_path /var/cache/nginx/tmp;

thanks for the help

Viewing all articles
Browse latest Browse all 972

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>