nginx 从一个路径访问另一个路径怎么跳转

访问stap的路径跳转到根目录下,并且带上之前的参数
#rewrite ^/stap/(.*)$ /$1 permanent;

访问stap目录代理到下面目录 # location
/stap/ { # rewrite ^/stap/(.*)$ https://abgg.fxxxuuuppppmppyyai.com/$1 permanent; # }

访问stap目录代理到下面目录
# location /stp/ { # proxy_pass https://cd.hhhhh.com/; # }

 

posted @ 2024-03-12 15:41  滴滴滴  阅读(48)  评论(0编辑  收藏  举报