当你执行 nginx -t 得时候,nginx会去测试你得配置文件得语法,并告诉你配置文件是否写得正确,同时也告诉了你配置文件得路径: # nginx -t nginx: the configuration file /usr/local/etc/nginx/nginx.conf syntax is ok nginx: configuration file /usr/local/etc/nginx/nginx.conf test is successful 配置文件 /etc/nginx/
引用于文章https://blog.csdn.net/line_aijava/article/details/71473793 root: Sets the root directory for requests. For example, with the following configuration location /i/ { root /data/w3; }//The /data/w3/i/top.gif file will be sent in response to the “/i