理论基础:User - > web ->nginx ->tomcat1 ->*.jsp 80 8080 ↓ -> tomcat2 html -> tomcat3用户通过web访问网页,默认访问的是80端口,即访问nginx。由于nginx只支持静态网页,如果用户访问的是类似*.jsp的动态网...
分类:
其他好文 时间:
2014-09-25 16:49:50
阅读次数:
218
前端服务器采用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
It is not a good idea to use dev server in Production Environment.
Apache or Nginx are good choice.Both of them are of great used as the web server.
...
分类:
其他好文 时间:
2014-09-25 02:39:28
阅读次数:
338
centos 7 min 编译安装php5.6+nginx1.7.5 笔记
1、安装mysql请参照 centos 7 min 编译安装mysql5.6.20 笔记
2、编译安装php5.6+nginx1.7.5
2.1、安装php5.6.0
首先添加依赖应用
yum install -y gcc gcc-c++ autoconf libjpeg libjpeg-devel lib...
分类:
Web程序 时间:
2014-09-24 22:02:28
阅读次数:
355