Chinaunix首页 | 论坛 | 博客
  • 博客访问: 382911
  • 博文数量: 146
  • 博客积分: 7142
  • 博客等级: 少将
  • 技术积分: 975
  • 用 户 组: 普通用户
  • 注册时间: 2009-12-03 09:43
文章分类

全部博文(146)

文章存档

2012年(1)

2011年(5)

2010年(24)

2009年(116)

我的朋友

分类: LINUX

2009-12-08 16:51:11

lighttpd默认是没有开启expire模块的,需要我们在使用是手工开启这个模块支持。把mod_expire前面的“#”号去掉。
  # vi /usr/local/lighttpd/etc/lighttpd.conf
  "mod_expire",
  设定过期时间
  * 设定指定url的过期时间:
  expire.url = (
  "/images/" => "access 3 hours",
  "/admin/" => "access 3 hours",
  "/area/" => "access 3 hours",
  "/calendar/" => "access 3 hours",
  "/common/" => "access 3 hours",
  "/front/" => "access 3 hours",
  "/inc/" => "access 3 hours",
  "/jeditor/" => "access 3 hours",
  "/js/" => "access 3 hours",
  "/script/" => "access 3 hours",
  "/theme/" => "access 3 hours",
  "/upload/" => "access 3 hours",
  "/view/" => "access 3 hours",
  "/help/" => "access 3 hours",
  "/htm/" => "access 5 minutes"
  )
  设置Etag
  在配置文件中增加,etag.use-inode=”disable”(i节点不参与etag的运算),保证多台服务器生成的Etag值一致。
 
阅读(1348) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~