
WEBSERVER
iteye_18568
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
打开Nginx的gzip压缩
nginx默认情况下gzip是开启的,但是只对html文件压缩,不对js文件压缩,所以需要配置一下nginx的gzip_types参数编辑nginx.conf文件,在http段加入一下配置[quote]gzip on; gzip_min_length 1000; gzip_buffers 4 8k; gzip_types text/p...2009-01-08 15:48:15 · 95 阅读 · 0 评论 -
测试varnish对gzip压缩内容的缓存
由于squid 2.x不支持http1.1,所以对gzip压缩过的内容和不压缩的内容缓存并不能很好的缓存两份。varnish是一个纯缓存产品,性能据说要高于squid。本文只是测试了varnish缓存gzip压缩方面的支持,安装和设置请参考 [url]http://blog.s135.com/post/313/[/url]用curl请求未压缩的内容:[quote...2009-03-25 15:47:26 · 174 阅读 · 0 评论 -
在Google App Engine里使用JSTL
在Google App Engine下,这样的JSP文件是不能正常显示内容的:[code="html"] test hello ${user.id}: your name is: ${user.name}[/code]显示的结果是:[quote]hello ${user.id}:your name i...原创 2010-01-28 13:53:56 · 205 阅读 · 0 评论 -
在Nginx上配置wordpress URL rewrite的通用规则
之前介绍的URL rewrite规则有可能会对多层结构的目录支持的不好,所以我就找了下面这个更简单的写法,可以通用目录和文件。[quote]if (!-e $request_filename) { rewrite ^(.+)$ /index.php?q=$1 last;}[/quote]这条规则就是把所有不存在的文件或者目录都转发到index.php原帖地址:[url...原创 2010-06-25 09:21:05 · 304 阅读 · 0 评论