根本区别

一个请求的url= http://ip:port/path

在location中配置root和alias的区别:

  root是在location的正则之前拼接了路径

  alias是在location的正则之处替换了路径

相关文章: