linux下nginx+python配置

七月 17th, 2010 | 16 Comments | Posted in Nginx | 阅读次数: 121

Author:gaojinbo Time:2010-7-17 linux下nginx+python配置,以下文章只记录了重点部分   mod_wsgi下载 http://hg.mperillo.ath.[......]

Read more

Tags:

Nginx处理cookie

六月 22nd, 2010 | 7 Comments | Posted in Nginx | 阅读次数: 62

群众的力量是巨大的,群众的智慧是无穷的。其实这次的需求就让我体会到这句话的意义。 现有一需求,需要把我们手机网站的cookie信息记录到access.log里,数据挖掘部门需要根据这个来统计用户行为。其实我还真没有这样记录过日志,后来[......]

Read more

Tags:

通过Nginx使全站页面变灰

五月 10th, 2010 | 1 Comment | Posted in Nginx | 阅读次数: 27

原文来自张宴的博客,经过优化,去除多余文字,测试通过,发上来与大家分享! 只需要在Nginx负载均衡服务器上,利用sub_filter指令在输出的HTML中增加一行: <style type="text/css&qu[......]

Read more

Tags:

nginx0.7.65源码编译安装on centos V1.1

四月 19th, 2010 | 5 Comments | Posted in Nginx | 阅读次数: 32

制作:高进波 时间:2010-04-03 主题:nginx源码编译安装on centos 1.环境 centos5.4    nginx0.7.65   2.下载源码[......]

Read more

Tags:

Bo-Blog 2.1.1 的 Nginx Rewrite 规则

二月 3rd, 2010 | 1 Comment | Posted in Nginx | 阅读次数: 21

原文链接:http://blog.s135.com/bo-blog_nginx_rewrite/ Bo-Blog是一款采用PHP开发的单用户博客程序,本人的博客也采用的是Bo-Blog,个人觉得bo-blog的排版、易用性要比Wor[......]

Read more

Tags:

使用Nginx的proxy_cache缓存功能取代Squid

一月 15th, 2010 | 2 Comments | Posted in Nginx | 阅读次数: 17

原文链接:http://blog.s135.com/nginx_cache/ Nginx从0.7.48版本开始,支持了类似Squid的缓存功能。这个缓存是把URL及相关组合当作Key,用md5编码哈希后保存在硬盘上,所以它可以支持任[......]

Read more

Tags:

nginx限制ip并发数

十二月 1st, 2009 | 3 Comments | Posted in Nginx | 阅读次数: 38

Author:gaojinbo Time:2009-12-01 nginx限制ip并发数,也是说限制同一个ip同时连接服务器的数量 1.添加limit_zone 这个变量只能在http使用 vi /usr/local/[......]

Read more

Tags:

本站ningx wordpress rewrite重写规则

十一月 27th, 2009 | 3 Comments | Posted in Nginx | 阅读次数: 27

Author:gaojinbo Time:2009-11-27   为了让搜索引擎更友好,改变了默认的wordpress链接方式,代码从网上找了很久,测试通过 特发上来与大家分享! vi wp_rewrite.conf[......]

Read more

Tags: ,

配置nginx过滤不良访问提高squid命中率

十一月 27th, 2009 | 2 Comments | Posted in Nginx | 阅读次数: 10

原文:http://sudone.com/nginx/nginx_strip_args.html 1、对静态内容加以问号的访问 例如http://www.sudone.com?abc,这样的请求会透过squid缓存,直达后端服务器,并[......]

Read more

Tags: ,

nginx防盗链配置

十一月 27th, 2009 | 5 Comments | Posted in Nginx | 阅读次数: 23

原文:http://sudone.com/nginx/nginx_valid_referers.html 以下配置一般可称为图片防盗链配置,如果是mp3这种文件,我现在是用的cookie防盗链方式。 location /img/ {[......]

Read more

Tags: ,