reference 网络IO模型 http://blog.csdn.net/turkeyzhou/article/details/6764810
Nginx配置文件解析
1. Nginx配置文件的基本结构
events{
...
}
http{
...
server {
...
}
server {
...
}
...
}
2. Nginx最简配置文件
http{
server{
listen 80;
server_name www.abc.com
access_log logs/access.log
location / {
index index.html index.jsp
root /data/webproject
}
}
}
3. Nginx日志文件的配置与分割
a) 用log_format指令设置日志格式
指令格式:log_format name format
默认log_format如下:
log_format combined '$remote_addr - $remote_user [$time_local] '
'"$request" $st
Nginx配置文件解析
1. Nginx配置文件的基本结构
events{
...
}
http{
...
server {
...
}
server {
...
}
...
}
2. Nginx最简配置文件
http{
server{
listen 80;
server_name www.abc.com
access_log logs/access.log
location / {
index index.html index.jsp
root /data/webproject
}
}
}
3. Nginx日志文件的配置与分割
a) 用log_format指令设置日志格式
指令格式:log_format name format
默认log_format如下:
log_format combined '$remote_addr - $remote_user [$time_local] '
'"$request" $st