http{limit_conn_zone$binary_remote_addrzone=conn:10m;server{location/{limit_connconn2;}}}limit_conn_zone用在http段。limit_conn可以用在http,server,location区段。nginx新语法limit_conn_zone替换limit_conn用法对应conf文件夹中的nginx.conf文件,将limit_conn替换..
分类:
其他好文 时间:
2014-09-25 17:11:59
阅读次数:
236
理论基础:User - > web ->nginx ->tomcat1 ->*.jsp 80 8080 ↓ -> tomcat2 html -> tomcat3用户通过web访问网页,默认访问的是80端口,即访问nginx。由于nginx只支持静态网页,如果用户访问的是类似*.jsp的动态网...
分类:
其他好文 时间:
2014-09-25 16:49:50
阅读次数:
218
cookie是怎样工作的?例如,我们创立了一个名字为login的Cookie来包含访问者的信息,创立Cookie时,服务器端的Header如下面所示,这里假设访问者的注册名是“Michael Jordan”,同时还对所创立的Cookie的属性如path、domain、expires等进行了指定。Se...
分类:
其他好文 时间:
2014-09-25 16:02:39
阅读次数:
317
前端服务器采用nginx,后端应用服务器采用tomcat。nginx负责负载均衡,session复制在tomcat上处理。1、nginx安装(略)2、nginx配置负载均衡http { include mime.types; default_type application/octet-stream...
分类:
其他好文 时间:
2014-09-25 15:58:59
阅读次数:
164
Nginx出现“413 Request Entity Too Large”错误解决方法 2011-03-25 13:49:55|分类: 默认分类 |标签:413requestentitytoolargenginx出现错误解决方法 |举报 |字号订阅 今天使用Wordpress的flash版文件上传功...
分类:
其他好文 时间:
2014-09-25 15:23:19
阅读次数:
177
1. 下载:http://nginx.org/en/download.html2. 安装依赖:yum -y install gcc gcc-c++ autoconf libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel l...
分类:
其他好文 时间:
2014-09-25 14:21:29
阅读次数:
264
工作中碰到一些目录需要写入数据,为了安全起见需要屏蔽特定路径下的php,python解析。nginx相关配置:location~/(data|sites/upload)/.*\.(php|php5|py|pyc|sh)?${denyall;}apache相关配置:<Directory/usr/local/apache/htdocs/bbs/data>php_flagengineoff</Director..
分类:
编程语言 时间:
2014-09-25 13:51:39
阅读次数:
306
语法规则: location [=|~|~*|^~] /uri/ { … } = 开头表示精确匹配 ^~ 开头表示uri以某个常规字符串开头,理解为匹配url路径即可。nginx不对url做编码,因此请求为/static/20%/aa,可以被规则^~ /static//aa匹配...
分类:
其他好文 时间:
2014-09-25 05:41:38
阅读次数:
192
Nginx官方站点?http://nginx.org/cn/ tengine?淘宝基于nginx二次开发?http://tengine.taobao.org/ nginx已经附带memcache模块,可以管理缓存,而且支持平滑升级...... 系统Centos6.5_64位?rpm包和源码包???...
分类:
其他好文 时间:
2014-09-25 04:49:38
阅读次数:
375
简介
Netstat 命令用于显示各种网络相关信息,如网络连接,路由表,接口状态 (Interface Statistics),masquerade 连接,多播成员 (Multicast Memberships) 等等。
输出信息含义
执行netstat后,其输出结果为
01
Active Internet connecti...
分类:
Web程序 时间:
2014-09-25 02:49:19
阅读次数:
338