nginx 学习:将二级目录转发到本地目录
Nginx的location配置无效,alias和root的区别,此类问题
# 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/;
}
# 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/;
}