https://github.com/nhnc-nginx/apache2nginx
- Posted
- Filed under 프로그래밍
http {
proxy_cache_path /data/nginx/cache levels=1:2 keys_zone=STATIC:10m
inactive=24h max_size=500m;
server {
location / {
proxy_pass http://1.2.3.4;
proxy_set_header Host $host;
proxy_cache STATIC;
proxy_cache_valid 200 1d;
proxy_cache_use_stale error timeout invalid_header updating
http_500 http_502 http_503 http_504;
}
}
}
root 18999 0.0 0.0 45536 1300 ? Ss Dec06 0:00 nginx: master process /usr/sbin/nginx www-data 19000 0.0 0.0 50088 7080 ? S Dec06 0:33 \_ nginx: worker process www-data 19001 0.0 0.0 50144 7080 ? S Dec06 0:33 \_ nginx: worker process www-data 19002 0.0 0.0 50112 7084 ? S Dec06 0:33 \_ nginx: worker process www-data 19003 0.0 0.0 50080 7080 ? S Dec06 0:34 \_ nginx: worker process www-data 19004 0.0 0.0 45732 1628 ? S Dec06 0:02 \_ nginx: cache manager process
http://kwonnam.pe.kr/wiki/nginx/proxy_cache
http://kilim.tistory.com/10
http://edendev.egloos.com/viewer/3257937
http://kray.jp/blog/nginx/