NGINX root 和 alias

在配置 NGINX 文件映射时发现 root 并没有按照期待映射,找解决方法,建议换作 alias 映射目录,不解,查下文档,理解区别。 root root 指令用于指定搜索文件的根目录。NGINX 将请求 URI 附加到 root 指定的路径。该指令可以放置在 http,server 或 location 上下文中的任何级别上。 ...

May 3, 2018 · 2 min · Zeral