九爷带你了解 nginx 日志配置指令详解
nginx日志配置指令详解
日志对于统计排错来说非常有利的。
本文总结了nginx日志相关的配置如 access_log、log_format、open_log_file_cache、log_not_found、log_subrequest、rewrite_log、error_log。
第七章:nginx的rewrite规则详解
模块ngx_http_rewrite_module
该ngx_http_rewrite_module模块用于使用PCRE正则表达式更改请求URI,返回重定向,并有条件地选择配置。
Nginx配置负载均衡
一,Nginx常用命令
1) 启动Nginx:start nginx
2) 停止Nginx:nginx -s stop
3) 修改配置后重启:nginx -s reload
二,以Tomcat服务器为例进行负载均衡设置
为了简单,我直接在windows解压了个nginx-1.10.0.zip。