随笔分类 -  Nginx

Nginx log
摘要:ngx_http_log_module 模块通过指定的格式把请求写入日志.请求登陆到location处理结束的环境中.如果重定向发生在请求处理过程中,这或许与location原理不同.Example Configurationlog_format compression '$remote_addr ... 阅读全文

posted @ 2015-07-08 14:48 Mo-_-! 阅读(702) 评论(0) 推荐(0)

nginx location详解(三)
摘要:location官方文档:http://nginx.org/en/docs/http/ngx_http_core_module.html#locationSyntax: location [ = | ~ | ~* | ^~ ] uri { ... }location @name { ... }... 阅读全文

posted @ 2015-07-03 16:47 Mo-_-! 阅读(4469) 评论(0) 推荐(0)

nginx_http核心模块(二)
摘要:对一些常用的配置项做一些解释:详细请看官方文档:http://nginx.org/en/docs/http/ngx_http_core_module.html1. alias Syntax: alias path;Default: —Context: location 上... 阅读全文

posted @ 2015-07-03 11:55 Mo-_-! 阅读(553) 评论(0) 推荐(0)

nginx入门手册(一)
摘要:1.nginx进程: nginx会启动多个进程: 一个主进程Master. 几个工作进程worker. 缓存加载器进程 缓存管理器进程 master主要工作: 1. 读取并验正配置信息; 2. 创建、绑定及关闭套接字; 3. 启动、终止及维护worker... 阅读全文

posted @ 2015-07-02 12:46 Mo-_-! 阅读(261) 评论(0) 推荐(0)

nginx 配置文件解析(一)
摘要:nginx.confuser nginx; # nginx服务的运行用户worker_processes 1; # 启动进程数,通常设置成和CPU的数量相等error_log /var/log/nginx/error.log; # 错误日志,错误级别... 阅读全文

posted @ 2015-06-30 17:50 Mo-_-! 阅读(376) 评论(0) 推荐(0)

导航