Skip to content

这是一个http代理工具,vanish缓存服务器有多台分布式部署,使用 Restfull API 清除 vanish缓存,本程序可以在所有的服务器执行清除api请求

Notifications You must be signed in to change notification settings

shanhai2015/clearvanish

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

###实质是http请求转发,可以修改header 信息 ####vanish cache clear agnet please config the file servers.json all data in one line ,end by '\n'

varnishiplist.txt varnish ip list ,one ip one line ####build

install the go runtime

cd ./clearvanish [root@07Node ~]# go build ###run the agent ./start.sh

###测试


[root@bogon 桌面]# curl -G -d "spid=10002001&epgid=100106"  -H"Host:interface5.v5.com" -H"Purge-ID:12" http://127.0.0.1:8000/




[root@bogon 桌面]# nc -l -k -p 8003
PURGE /?spid=10002001&epgid=100106 HTTP/1.1
Host: interface5.v5.com
User-Agent: curl/7.29.0
Accept: */*
Purge-Id: 12
Accept-Encoding: gzip



About

这是一个http代理工具,vanish缓存服务器有多台分布式部署,使用 Restfull API 清除 vanish缓存,本程序可以在所有的服务器执行清除api请求

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published