Nginx缓存模块proxy_store
来源:互联网 发布:2017年编程语言排行榜 编辑:程序博客网 时间:2024/06/05 09:32
Nginx的proxy_store模块
作用:直接把静态文件在本地硬盘创建并读取
特点:无法通过程序控制cache何时过期,需要定期删除缓存目录中的内容(我们需要永久性保存视频切片文件)
基本的配置方式:
proxy_store on; //启用缓存到本地的功能proxy_store_access user:rw group:rw all:rw;proxy_temp_path /video //指定缓存到那额目录之下 if ( !-e $request_filename) { proxy_pass http://ip;//当请求的文件在本地的prox_temp_path指定的目录下不存在时,再向源站请求拉取}
root模式:
server { listen 80; server_name ip; index index.html index.htm; root /; location / { root /; proxy_store on; proxy_store_access user:rw group:rw all:rw; proxy_temp_path /; if ( !-e $request_filename) { proxy_pass http://ip; } }}
alias模式
server{ listen 80; server_name ip; index index.html index.htm; root /data/video/hls; location ^~ /jiaoyu/data/video/hls { alias /data/video/hls; proxy_store on; proxy_store_access user:rw group:rw all:rw; proxy_temp_path /data/video/hls; if ( !-e $request_filename) { proxy_pass http://ip; } }}
0 0
- Nginx缓存模块proxy_store
- Nginx 的 proxy_store 缓存
- Nginx 的 proxy_store 缓存
- Nginx之proxy_store模块
- lua实现nginx proxy_store的purge缓存清理的方法
- Nginx实践1 利用proxy_store实现高效的静态文件分布缓存服务器
- Nginx实践:用proxy_store实现高效的静态文件分布缓存服务器
- CentOS 5.9 下nginx proxy_store的使用
- nginx利用fastcgi_cache模块缓存
- nginx四 之缓存模块
- nginx添加srcache-nginx模块进行页面缓存
- Nginx缓存配置及nginx ngx_cache_purge模块的使用
- 让nginx的proxy_store和proxy_cache支持ctrl+f5和PURGE二种方
- 利用nginx的fastcgi_cache模块来做缓存
- 使用memc-nginx和srcache-nginx模块构建高效透明的缓存机制
- 使用memc-nginx和srcache-nginx模块构建高效透明的缓存机制
- 使用memc-nginx和srcache-nginx模块构建高效透明的缓存机制
- 使用memc-nginx和srcache-nginx模块构建高效透明的缓存机制
- activiti工作流的web流程设计器整合视频教程 SSM和独立部署
- 房价之谜 2017 03 10
- 行为型模式之模板方法TEMPLATE METHOD
- Linux 安装.src.rpm源码包的方法
- 获取java项目的根目录-方法大全
- Nginx缓存模块proxy_store
- SpringMVC mybatis or hibernate ehcache二级缓存maven非和maven版本
- Confluence5.8.10安装过程
- android studio 将A module设置为libaray 供 B module使用
- 正则表达式
- Linux中的常用内存问题检测工具
- MYSQL性能优化之操作系统参数,文件系统
- xml的解析
- 【OA】Dao层“接口”、“实现”两个维度一个良好的设计学习