nginx.conf文件結構以下:html
.....nginx
eventsserver
{htm
......io
}event
http{文件
....co
server{index
....location
}
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;
}
}
.....
}