nginx.conf文件结构如下:
.....
events
{
......
}
http{
....
server{
....
}
server{
listen 192.168.0.12:80;
server_name 192.168.0.12;
access_log logs/server1.access.log combined;
location /{
index index.html index.htm;
root d:/server1;
}
}
.....
}