Chinaunix首页 | 论坛 | 博客
  • 博客访问: 224686
  • 博文数量: 35
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 938
  • 用 户 组: 普通用户
  • 注册时间: 2013-09-12 14:52
文章分类

全部博文(35)

文章存档

2016年(4)

2015年(5)

2014年(16)

2013年(10)

我的朋友

发布时间:2013-12-26 11:35:17

前提:因为在nginx下面已经有了一条该url的规则,但是现在应需求需要在做一条规则,所以需要做两次转换。
?在一次转换的前提下,还要进行一次转换。
......【阅读全文】

阅读(1740) | 评论(0) | 转发(0)

发布时间:2013-10-14 10:44:18

nginx和php下的ssi不生效问题。
原因:php内部进行压缩,压缩之后nginx不能识别


解决:修改php.ini
禁掉 zlib.output_compression = On
?......【阅读全文】

阅读(6156) | 评论(1) | 转发(0)

发布时间:2013-10-09 11:37:05

if ($host ~* "^baomihua.free.cn" ) {
rewrite "^/([0-9]+)\.html(\?.+)*$" /show.php?contentid=$1&tpl=1 last;
rewrite "^/([0-9]+)_([0-9]+)\.html(\?.+)*$" /show.php?contentid=$1&vod=$2&tpl=1 last;
rewrite "^/(.*)\.html(\?.+)*$" http://www.free.cn/$1.html$2 permanent;
rewrite "^/(.+/)*(\?.+)*$" http://www.free.cn/$1$2 permanent;
}

这个就说明,主机头带有‘baomihua.free.cn’的将会使用下面的rewrite规则。
而且一般在主机名前面加上“^” 代表以** 开头。
下面的rewrite规则则代表
rewrite "^/([0-9]+)\.html(\?.+)*$" /......【阅读全文】

阅读(4737) | 评论(0) | 转发(0)

发布时间:2013-09-26 16:40:52

安装nginx
下载地址 http://nginx.org/

tar zxf nginx-1.5.5 .tar.gz
cd nginx-1.5.5
./configure --user=www --group=www --prefix=/usr/local/webserver/nginx2 --add-module=../ngx_cache_purge-1.5 --with-http_stub_status_module --with-http_ssl_module --with-http_gzip_static_module
make;make install......【阅读全文】

阅读(2127) | 评论(0) | 转发(0)

发布时间:2013-09-12 15:26:14

nginx ngx_slab_alloc() memory in cache ngx_slab_alloc() failed: no memory in cache keys zone "STATIC" nginx的error.log......【阅读全文】

阅读(5824) | 评论(0) | 转发(0)
给主人留下些什么吧!~~

美丽的白宝宝2015-09-08 09:38

嘻嘻  

回复  |  举报
留言热议
请登录后留言。

登录 注册