摘要: 使用本模块可以指定默认文档:location / {: index index.$geo.html index.html;}index语法: index file [file...]默认值: index index.html作用域: http, server, location该指令用来指定... 阅读全文
posted @ 2012-10-09 11:03 jessonlv 阅读(152) 评论(0) 推荐(0) 编辑
摘要: ngx_http_log_module实例:log_format gzip '$remote_addr - $remote_user [$time_local] ': '"$request" $status $bytes_sent ': '"$http_referer" "$http_user... 阅读全文
posted @ 2012-10-09 10:42 jessonlv 阅读(149) 评论(0) 推荐(0) 编辑
摘要: This module makes it possible to change URI using regular expressions, and to redirect and select configuration depending on variables.该模块允许使用正则表达式改变U... 阅读全文
posted @ 2012-10-09 10:36 jessonlv 阅读(369) 评论(0) 推荐(0) 编辑
摘要: 本模板可以设置HTTP报文的头标。__示例__:: expires 24h;: expires 0;: expires -1;: expires epoch;: add_header Cache-Control private;指令[#add_header add... 阅读全文
posted @ 2012-10-09 10:24 jessonlv 阅读(928) 评论(0) 推荐(0) 编辑
摘要: 该模块为后端服务器提供简单的负载均衡(轮循调度和客户端 IP)。示例:upstream backend { server backend1.example.com weight=5; server backend2.example.com:8080; server unix:/tmp/bac... 阅读全文
posted @ 2012-10-09 09:37 jessonlv 阅读(216) 评论(0) 推荐(0) 编辑
摘要: 最近写了很多,查了很多的资料,总怕出错误导了对nginx有学习兴趣的同学,有什么问题,还请大家指正,本人会在第一时间修改。Redirected fromNginxChsHttpProxyModule此模块能代理请求到其它服务器.这是 HTTP/1.0 版本的代理,暂时无法保持 keep-alive ... 阅读全文
posted @ 2012-10-09 09:26 jessonlv 阅读(150) 评论(0) 推荐(0) 编辑