
linux nginx
iteye_7106
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
安装啊
/etc/nginx/ fastcgi_params要添加fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;然后 ,虚拟主机里,添加 root ,对应 $document_root, http://www.21andy.com/blog/20100219/1701.html...原创 2011-05-27 22:15:33 · 76 阅读 · 0 评论 -
[转]Nginx开发从入门到精通
http://tengine.taobao.org/book/ tengine 开源项目原创 2013-12-06 10:52:55 · 123 阅读 · 0 评论 -
nginx 分割日志
#!/bin/bashlogs_path="/home/work/log/nginx"year=`date -d yesterday +%Y`month=`date -d yesterday +%m`day=`date -d yesterday +%d`log_name=$year/$month/$daysub_logs_path=$logs_path/$log_name...原创 2015-11-07 16:16:51 · 135 阅读 · 0 评论 -
gzip 压缩
http://wiki.nginx.org/NginxChsHttpGzipModule 悲剧的ie6,对img 压缩会造成 假死 gzip_disable "MSIE [1-6].";原创 2011-05-03 15:50:06 · 114 阅读 · 0 评论 -
nginx rewrite伪静态配置参数详细说明
正则表达式匹配,其中:* ~ 为区分大小写匹配* ~* 为不区分大小写匹配* !~和!~*分别为区分大小写不匹配及不区分大小写不匹配文件及目录匹配,其中:* -f和!-f用来判断是否存在文件* -d和!-d用来判断是否存在目录* -e和!-e用来判断是否存在文件或目录* -x和!-x用来判断文件是否可执行flag标记有:...原创 2011-04-21 11:44:14 · 329 阅读 · 0 评论 -
nginx 配置说明补充
## 以下信息都是google上找到的 ### sendfile on;#sendfile 指令指定 nginx 是否调用 sendfile 函数(zero copy 方式)来输出文件,#对于普通应用,必须设为 on。#如果用来进行下载等应用磁盘IO重负载应用,可设置为 off,以平衡磁盘与网络IO处理速度,降低系统 uptime。 tcp_nopush on;...原创 2011-10-14 14:06:22 · 119 阅读 · 0 评论 -
nginx 优化
最近服务器总是502,公司没有专门的运维人员,请帮忙的朋友又忙,就自己试着找资料:命令 ulimit -n 查看限制的打开文件数, 是655351、提升服务器的文件句柄打开打开 # vi /etc/security/limits.conf 加上* soft nofile 65535* hard nofile 65535...原创 2011-10-14 12:55:34 · 102 阅读 · 0 评论 -
【转】重启nginx
# /usr/sbin/nginx -s reload nginx 已经重启 成功nginx 服务 其他参数: # /usr/sbin/nginx -h ---------------------------------------三、nginx的信号控制◆ TERM,INT 快速关闭◆ QUIT 从容关闭...原创 2010-11-30 13:46:11 · 73 阅读 · 0 评论 -
中文手册
看附件, 摘抄一些常用的 1. Nginx Rewrite 基本标记(flags)last - 基本上都用这个Flag。※相当于Apache里的[L]标记,表示完成rewrite,不再匹配后面的规则break - 中止Rewirte,不再继续匹配redirect - 返回临时重定向的HTTP状态302permanent - 返回永久重定向的HTTP状态301...原创 2011-05-28 11:15:31 · 115 阅读 · 0 评论 -
nginx根据url指定root目录
if ($request_uri ~* "/(v\d+)/.*" ) { set $version $1; } root /home/code/php/potato/$version/food/public;原创 2016-03-02 13:58:38 · 2355 阅读 · 0 评论