ngnix随笔三

1.location模块

在server中也可以嵌套location

例 

server{

    listen 80;

    server_name www.a.com;

    root   /data/vhosts/;

    location /news/ {

      root   /app/vhosts/;    

    }

}

在访问www.a.com/news/index.html时   访问的服务器的磁盘位置为/app/vhosts/news/index.html

2.curl -I www.a.com  #-I(i) 显示版本参数

原文地址:https://www.cnblogs.com/hekuangquanshuiweiteng/p/12727372.html