Apache::Queue 介绍
Apache::Queue
是一个Apache的模块用来做HTTP的文件下载队列,当下载的人数超过预设的数字,这多出来的请求将被放入队列等待处理,而不是出错。
安装方法:
perl Makefile.PL
make
make install
配置示例:
#httpd.conf SetHandler perl-script PerlHandler Apache::Queue # the size of the queue (default: 300) PerlSetVar QueueSize 300 # how many simultanious file transfers # before queueing (default: 10) PerlSetVar MaxSends 10 # Location of queue files (default: /tmp) # This path must be writable by the Apache # process PerlSetVar QueuePath /tmp # Location of customized templates if needed # Do not set this if you wish to use the internal templates # Templates are process by Template-Toolkit, see # [http://www.template-toolkit.org](http://www.template-toolkit.org/) for docs # # There are 4 template files needed. # queue_send.html - The "Your download should start..." page # queue_sending.html - Notifys the visitor of an existing download # queue_position.html - Page used while a user is inline # queue_full.html - Tells the queue is full # # View the defaults in the module for samples PerlSetVar Te
Apache::Queue 官网
http://www.psyon.org/projects/apache-queue/index.php
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。