nginx proxy_cache配置说明
来源:互联网 发布:管家婆软件免费版教程 编辑:程序博客网 时间:2024/05/22 01:36
#定义代理缓存路径 ,缓存文件保存路径 缓存初始大小和最大值 缓存时间
proxy_cache_path d:\code\cache levels=1:2 keys_zone=cache1:10m max_size=20m inactive=1m;
location / {
#配置上面定义的keys_zone的值
proxy_cache cache1;
#配置url中包括哪个参数的时候不去缓存中查询
proxy_cache_bypass $arg_name;
#定义缓存的key
proxy_cache_key $host$uri$is_args$args;
#缓存时间,如果response中header信息里边有Cache-Control 则以header里边的缓存时间为准
proxy_cache_valid 2m;
#当缓存失效后回源出错的时候可以使用缓存中旧数据,旧的总比出错强
proxy_cache_use_stale error timeout http_502 http_404;
proxy_pass http://127.0.0.1:8080;
}
0 0
- nginx proxy_cache配置说明
- Nginx+proxy_cache高速缓存配置
- Nginx+proxy_cache高速缓存配置
- nginx proxy_cache 配置
- nginx proxy_cache配置
- nginx proxy_cache配置缓存
- nginx proxy_cache 缓存配置
- nginx proxy_cache 配置
- nginx proxy_cache 缓存配置
- 我的nginx配置,针对proxy_cache的
- nginx+keepalived+proxy_cache配置高可用nginx群集和高速缓存
- nginx中配置proxy_cache使用内存的方法
- 利用nginx proxy_cache进行网站缓存托底配置
- Nginx proxy_cache 使用示例
- nginx内置缓存Proxy_cache
- nginx缓存设置proxy_cache
- nginx 的proxy_cache才是王道
- nginx 的proxy_cache才是王道
- python笔记之ArcPy函数列表
- 怎么取出数据库中表的数据生成XML文件
- 二、传统定时器的回顾
- hadoop错误总结
- Ubuntu14.04下QT开发环境搭建步骤
- nginx proxy_cache配置说明
- start uml2 文字不能换行
- 链表的基本操作
- 关于”囚徒困境“的见解
- 【LeetCode】165. Compare Version Numbers 解题报告
- 第三方Android 模拟器流畅速度快,适合开发人员
- HDU 1869 六度分离(迪杰斯特拉/优先队列/最短路)
- 点击Android webview的链接,屏蔽其它浏览器,只是在原来的webview中跳转
- 文本编辑器