37 Responses to “留言本”
Leave a Reply
分类目录
友情链接
商业应用
学习类网站
最多访问top10
- GlusterFS学习手记02-cluster/unify的学习,及负载均衡的实现[原创] - 3,490 views
- Linux System and Performance Monitoring(总结篇)[转] - 2,747 views
- 11月12日--北京的另一场大雪 - 2,603 views
- mysql主从复制错误解决一例 - 1,548 views
- GlusterFS学习手记01-初步了解及简单的配置应用[原创] - 1,417 views
- GlusterFS学习手记05-gluster和NFS测试[原创] - 1,406 views
- 用ffmpeg打造linux转码服务器 - 1,400 views
- nagios平台从apache迁移到nginx - 1,367 views
- MooseFS学习笔记01--认识moosefs - 1,305 views
- drbd+heartbeat(v1)+mysql搭建高可用数据库并保留原有硬盘数据[原创] - 1,126 views

七月 5th, 2010 at 17:01
技术博客,威武!!..
[回复]
五月 31st, 2010 at 10:26
老大 想问一下 在squid下限制访问的网站 能否捅破限制?谢谢了
[回复]
深夜的蚊子 回复:
五月 31st, 2010 at 10:56
你要是没有squid维护的权限,恐怕不能,这个问题我还真没考虑过
[回复]
五月 28th, 2010 at 05:50
哈哈,你也认识ritto?
[回复]
深夜的蚊子 回复:
五月 28th, 2010 at 09:30
还好吧,也不是很熟
[回复]
五月 13th, 2010 at 10:14
蚊子老大,问一个squid3 的自动重启问题。
原来squid2.6 有runaccel守护进程,squid3去掉runaccel后难道squid shutdown后需要手动启动?
[回复]
五月 11th, 2010 at 09:39
以后没事就来这学习学习!
[回复]
深夜的蚊子 回复:
五月 11th, 2010 at 15:50
欢迎光临,没事常来坐坐
[回复]
四月 28th, 2010 at 20:33
老大,问你个问题:我用curl工具查询了有的wordpress博客首页,知道首页设置了expires
HTTP/1.1 200 OK
Date: Wed, 28 Apr 2010 12:12:34 GMT
Server: Apache
X-Powered-By: PHP/5.2.13
Expires: Mon, 26 Jul 1997 05:00:00 GMT
Cache-Control: no-store, no-cache, must-revalidate
Pragma: no-cache
Last-Modified: Wed, 28 Apr 2010 12:12:34 GMT
Vary: Accept-Encoding
Content-Type: text/html; charset=utf-8
但是我在我的nginx服务器上也设置了expires,但是用curl工具却查不到expires,不知是那出错了,老大帮我看看吧
nginx的expires设置如下:
server
{
listen 80;
server_name *.*.*.*;
index index.html index.htm index.php;
root /data0/htdocs/wordpress;
#limit_conn crawler 20;
location ~ .*.(php|php5)?$
{
#fastcgi_pass unix:/tmp/php-cgi.sock;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fcgi.conf;
}
location ~* ^.+.(gif|jpg|jpeg|png|bmp|swf|html)$
{
expires 30d;
}
location ~* ^.+.(js|css)?$
{
expires 1h;
}
log_format access '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" $http_x_forwarded_for';
access_log /data1/logs/access.log access;
}
curl的查询结果如下:
HTTP/1.1 200 OK
Server: nginx/0.8.15
Date: Wed, 28 Apr 2010 20:21:43 GMT
Content-Type: text/html; charset=UTF-8
Connection: keep-alive
Vary: Accept-Encoding
X-Powered-By: PHP/5.2.10
[回复]
深夜的蚊子 回复:
四月 29th, 2010 at 08:47
你这只是对静态元素做了过期时间,而且首页是php的文件,你没有做过期处理,我想问题应该是出在这里的,curl一个静态文件看看在
[回复]
jason 回复:
四月 30th, 2010 at 11:14
还是大哥,回复的快呀!我已经明白了!wordpress的首页是php的,我在wordpress首页的index.php加入了以下几句就可以了:
header('Cache-Control: max-age=86400, must-revalidate');
header('Pragma:');
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT' );
header("Expires: " .gmdate ('D, d M Y H:i:s', time() + '86400' ). ' GMT');
[回复]
jason 回复:
四月 30th, 2010 at 11:16
忘了说声谢谢了!3ks!我想问下:我如果前端有squid做前端web内容缓存,该怎样设置动态页面的expires!烦请大哥赐教!小弟在此谢过了!
[回复]
深夜的蚊子 回复:
四月 30th, 2010 at 12:08
动态内容我不建议做缓存,除非更新不频繁,不然用户会浏览不到很多更新的内容,如果是你自己的wordpress,你可以考虑使用dbcache插件,来把数据库的内容缓存起来
[回复]
三月 16th, 2010 at 13:56
哥们做个链接可以吗?
[回复]
一月 18th, 2010 at 18:59
同样是个技术博客,彼此交换个链接怎么样?
[回复]
bedo 回复:
一月 18th, 2010 at 19:02
我已添加,请往www.wangdongbo.com查看
[回复]
一月 17th, 2010 at 20:55
技术!!连接!!!
[回复]
十一月 21st, 2009 at 10:35
博客附加功能挺丰富的啊
[回复]
十一月 1st, 2009 at 18:07
很技术的博 以后会常来哈!
[回复]
十月 31st, 2009 at 07:47
能不能加我一个友链,谢谢,您的我已经做好啦。
[回复]
深夜的蚊子 回复:
十月 31st, 2009 at 10:14
加好了,请查看吧
[回复]
十月 27th, 2009 at 19:04
Hello, 想请问一下,页面翻阅是怎么弄的,我的插件wp-pagvi 总不行,能指点一下吗?
谢谢!
顺便回送IP ..
[回复]
深夜的蚊子 回复:
十月 27th, 2009 at 20:10
我用的是Pagebar2这个插件
[回复]
Alex 回复:
十月 27th, 2009 at 20:33
交换个连接如何??
我已经把你的做好了!
[回复]
深夜的蚊子 回复:
十月 27th, 2009 at 21:49
恩,我也加上了,你查看一下吧
[回复]
十月 26th, 2009 at 20:10
的确是错位啊··
互访了··
有踩必回··
[回复]
十月 21st, 2009 at 00:20
freehostman博主用的是免费的空间?
[回复]
深夜的蚊子 回复:
十月 21st, 2009 at 09:05
目前不是了,那个有广告,导致我的theme在ie下都是错位的,只能又换了
[回复]
十月 19th, 2009 at 20:09
我用的是WP非官方中文网的11号主机,IP地址是74.53.53.194
[回复]
十月 17th, 2009 at 20:54
这豆瓣是怎么加的啊
[回复]
深夜的蚊子 回复:
十月 18th, 2009 at 00:09
豆瓣里有api的,可以加到你的blog中去的,你找找看
[回复]
十月 16th, 2009 at 15:34
我的clicki里面出现了你的访问记录.
我的siteid是25172,是这个和你重复了,
还是你是和我一个主机,IP相同导致的呢?
[回复]
十月 15th, 2009 at 21:56
蛐蛐工作室前来参观,侧边栏怎么这么乱啊?
[回复]
深夜的蚊子 回复:
十月 15th, 2009 at 22:30
目前ie都出现这个问题,不知道哪里的问题了,很奇怪
[回复]
九月 7th, 2009 at 21:07
哥们,做个友情链接吧,www.ritto.cn
[回复]
深夜的蚊子 回复:
九月 8th, 2009 at 14:02
已经加好,请查看
[回复]
五月 8th, 2009 at 10:31
你这里怎么没有友链啊。
想加个,http://www.lazysa.com
[回复]