nginx 学习:将二级目录转发到本地目录

Nginx的location配置无效,alias和root的区别,此类问题
更新于: 2022-05-17 09:57:09
# nginx 1.20.x
location ~ ^/cms_kk/(.*)$ {
  alias /www/wwwroot/cms_kk/$1;
}

# nginx 1.1x.x
location /cms_kk {
  alias /www/wwwroot/cms_kk/;
}