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

猜你喜欢

转载自www.cnblogs.com/enochmeng/p/9996977.html
今日推荐