개발자의 노트
Varnish 캐쉬 비우기 (재시작없이 설정파일 적용)

설정파일은 기본적으로 /etc/varnish/default.vcl 에 위치한다. varnish의 캐쉬를 지우는 명령어는 ban이며, 1. 로컬 서버에서만 curl 호출하여 캐쉬를 삭제할 수 있게 설정하는 법 (빨간색) 2. 웹브라우저에서 Shift + reload를 통해 캐쉬를 삭제할 수 있게 설정하는 법 (파란색) 우선 아래 설정파일을 참고하여 수정을 한다. backend assets { .host = "127.0.0.1"; .port = "80"; } # ban # curl -X BAN http:/// # curl -X BAN http:///static/images.png acl ClearCache { "localhost"; "127.0.0.1"; } sub vcl_recv { if (req.requ..

Varnish cache 설치
소프트웨어개발/Varnish 2014. 2. 24. 13:26

참고: https://www.varnish-cache.org/trac/wiki/Installation (Installing Varnish from source code) m4 설치 # wget http://ftp.gnu.org/gnu/m4/m4-1.4.17.tar.gz # tar zxvf m4-1.4.17.tar.gz # cd m4-1.4.17 # ./configure --prefix=/usr # make && make install autoconf 설치 # wget http://ftp.gnu.org/gnu/autoconf/autoconf-2.69.tar.gz # tar zxvf autoconf-2.69.tar.gz # cd autoconf-2.69 # ./configure --prefix=/usr # ..