-
我的Varnish服务器在访问量达到一定程度的时候会出现自动重启子进程的问题,从日志中出现重启子进程时有以下错误提示
Panic message: Missing errorhandling code in sma_alloc(), storage_malloc.c line 79: Condition((sma->s.p
tr) != 0) not true. errno = 12 (Cannot allocate me... -
VCL - Varnish configuration Language
The VCL language is a small domain-specific language designed to be used to define request handling and document caching policies for the Varnish HTTP accelerator. When a new configuration is loaded, the ... -
Varnish的配置安装已在之前的文章中提到过了,这次重点来看下有关图片防盗链的问题。其实防盗链最普遍的就是通过Referer来判断,如果不是从指定的域名来访问的就咔咔。知道了这个思路,剩下的就是配置文件的事儿了,这里只给出相关的配置文件段(当然,是加在vcl_recv里面):
if (req.http.referer) {
&...
共1页 1









