home

nginx配置location

例子:

  location / {

    root /website;

  }

如果一个请求的URI是/index.html时,web服务器将会返回服务器上的/website/index.html的文件。

如果一个请求的URI是/js/test时,web服务器将会返回服务器上的/website/js/test的文件。

 

详细介绍请查看此博客:https://www.cnblogs.com/lidabo/p/4169396.html

posted @ 2018-11-21 19:00  颜舞撩扰  阅读(157)  评论(0编辑  收藏  举报
footer