一、块结构
1、server块
2、http块
3、location块
4、event块
二、
自定义日志:
access_log path[format[buffer=size]] #此指令可以再http块、server块或者location块中设置
access_log off
log_format name string ...; #定义服务日志的格式
三、配置连接时间
与用户建立会话连接后,Nginx服务器可以保持这些连接打开一段时间,指令keepalive_timeout就是用来设置此时间的
keepalive_timeout timeout[header_timeout]
四、截图