Apache 的 X-sendfile
来源:互联网 发布:派尔玻璃优化软件 编辑:程序博客网 时间:2024/06/08 07:40
网上搜索了一下午才找到怎么配置 Apache 的 X-sendfile .
首先,据说只有Apache 2.x 才支持这一特性.其次Linux下支持此特性需要内核支持.一般现在的2.6的内
核都是支持的,最早好像是要到2.2的内核开始支持.
测试环境 :
系统:Windows XP
Apache 版本 :
2.11
辅助脚本 :
PHP 5.2.6
配置步骤:
1.下载模块文件
在 http://www.apachelounge.com/download/ 下载
一个windows 下编译好的x-sendfile 模块 mod_xsendfile-0.9-w32.zip .解压后将文件 mod_xsendfile.so 移动到 apache/modules 目录下.
2.配置Apache 配置文件
将以下内容配置到配置文件中
# 加载 x-sendfile 模块
LoadModule xsendfile_module modules/mod_xsendfile.so
XSendFile On
XSendFileAllowAbove On
3.使用PHP调用X-sendfile
实例代码:
参考文献:
http://blog.sina.com.cn/s/blog_549212ae010086s9.html
- Apache 的 X-sendfile
- Nginx 的 X-Accel-Redirect(X-Sendfile)
- PHP apache X-sendfile扩展实现文件下载
- Apache,Nginx,Lighttpd分别使用X-sendfile功能提升文件下载性能
- Apache,Nginx,Lighttpd分别使用X-sendfile功能提升文件下载性能
- Nginx中的x-sendfile机制
- nginx---X-Accel-Redirect(X-Sendfile)
- Linux 的 sendfile
- Linux Sendfile 的优势
- linux的sendfile
- sendfile
- sendfile
- sendfile
- sendfile
- sendfile
- sendfile
- sendfile
- 转:RoR网站如何利用lighttpd的X-sendfile功能提升文件下载性能
- JAVA 环境变量的设置
- 影响SEO的因素
- make 的 makefile 文件编写
- C#自定义事件
- 添加任务计划 执行 网络提交功能总结
- Apache 的 X-sendfile
- 2010年3月15日下午13:30分....
- tftp配置文件
- Nginx 的 X-Accel-Redirect(X-Sendfile)
- PKU 3327City Horizon离散化+线段树
- android event listener and event handler
- linux C库函数与系统调用的区别
- BufferedWriter的好處
- VC编译器限制字符串长度不能超过65535,NND