变量

  1. $document_root #针对当前请求的跟路径设置值;
  2. $remote_addr #客户端地址;
  3. $requset_filename #当前请求的文件路径名(带网站的主目录/usr/local/nginx/html)
  4. $request_uri #当前请求的文件路径名(不带网站的主目录/images/a.jpg)
  5. $scheme #用的协议,比如http或者是https
  6. $server_name #请求达到的服务器名;
  7. $args #请求中的参数;
  8. $host #请求信息中的“host”,如果请求中没有host行,则等于设置的服务器名(www.baidu.com 这个就是host);