nginx 中 root和alias

根本区别

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

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

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

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

猜你喜欢

转载自www.cnblogs.com/fengchuxiaodai/p/10071375.html
今日推荐