nginx转发url时变更路径转发到指定接口
location ^~ /fs/ {#如https://xx.com/fs/upload  转发到文件服务器
        proxy_pass http://127.0.0.1:8080/fs/;
}
        location ^~ /fs/ {#如https://xx.com/fs/upload  转发到文件服务器
        proxy_pass http://127.0.0.1:8080/fs/;
}
        本文链接:https://587v5.com/post/nginx-pei-zhi-he-ji---chi-xu-geng-xin.html
                作者
                
                
                    xiaoyierle
                
                发表于
                2021-05-24 14:39:21
                
                ,添加在分类
                
                
                    技术
                
                
                下
                
                
                ,并被添加「
                
                
                    Nginx
                
                
                 」标签
                
                ,最后修改于
                2021-05-24 14:42:26
            
Comments