微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

Apache::Queue

程序名称:Apache::Queue

授权协议: 未知

操作系统: 跨平台

开发语言: Perl

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

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐