Nginx 之:nginx.conf结构

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;

  }

}

.....

}

 

posted @ 2013-07-10 10:20  jerome.rong  阅读(253)  评论(0编辑  收藏  举报