NGINX Cache



NGINX Cache

NGINX Cache

This video show the basic configuration of NGINX Caching.

I hope this video can help you, if you have some problems or have some other questions, please can ask me in the comment bellow.

NGINX Cache Configuration :

proxy_cache_path /tmp/cache keys_zone=mycache:10m levels=1:2 inactive=120s max_size=100m;

server {
listen 80;
server_name nginx.aws.com;

proxy_cache mycache;
proxy_cache_valid 30m;
add_header X-Proxy-Cache $upstream_cache_status;

location / {
proxy_pass http://172.31.45.5;
}

}

Comments are closed.