• [织梦吧]唯一域名:www.dedecms8.com,织梦DedeCMS学习平台.

当前位置: > 编程与数据库 > php编程 >

PHP企业级应用缓存技术详解(5)

来源: www.dedecms8.com 编辑:织梦吧 时间:2012-02-08点击:

  proxy_send_timeout 90;

  proxy_read_timeout 90;

  proxy_buffer_size 4k;

  proxy_buffers 4 32k;

  proxy_busy_buffers_size 64k;

  proxy_temp_file_write_size 64k;

 

  mod_proxy的例子:

 

  <VirtualHost *>

  ServerName www.zxsv.com

  ServerAdmin admin@zxsv.com

  # reverse proxy setting

  ProxyPass / http://www.zxsv.com:8080/

  ProxyPassReverse / http://www.zxsv.com:8080/

  # cache dir root

  CacheRoot “/var/www/proxy”

  # max cache storage

  CacheSize 50000000

  # hour: every 4 hour

  CacheGcInterval 4

  # max page expire time: hour

  CacheMaxExpire 240

  # Expire time = (now – last_modified) * CacheLastModifiedFactor

  CacheLastModifiedFactor 0.1

  # defalt expire tag: hour

  CacheDefaultExpire 1

  # force complete after precent of content retrived: 60-90%

  CacheForceCompletion 80

  CustomLog /usr/local/apache/logs/dev_access_log combined

  </VirtualHost>

About D8

  • ©2014 织梦吧(d8) DedeCMS学习交流平台
  • 唯一网址 www.DedeCMS8.com 网站地图
  • 联系我们 1170734538@qq.com ,  QQ