Nginx中的root&alias文件路径及索引目录怎么配置root&alias文件路径配置nginx指定文件路径有两种方式root和alias,这两者的用法区别,使用方法总结了下,方便大家在应用过程中,快速响应。root与alias主要区别在于nginx如何解释location后面的uri,这会使 Nginx配置中指令root和alias的区别是什么root和alias都可以定义在location模块中,都是用来指定请求资源的真实路径,比如:location /i/ { root /data/w3;}请求 http://foofish.net/i/top.gif 这个地址时,那么在服 1