配置nginx静态资源路径

1.修改nginx.conf文件

server节点下location节点的 root目录修改

  location / {
            root   html;
            index  index.html index.htm;
        }
  location / {
            root   D:/MP/MP51/wwwroot;
            index  index.html index.htm;
        }

 

posted @ 2016-03-04 14:43  Me  阅读(3201)  评论(0编辑  收藏  举报