nginx下请求模拟接口json返回405
2021-05-13 13:28
阅读:716
            
                         标签:cat   nginx配置   cal   添加   nginx   code   ror   配置文件   eth    修改nginx配置文件,在  重启nginx,就能继续工作了~ nginx下请求模拟接口json返回405 标签:cat   nginx配置   cal   添加   nginx   code   ror   配置文件   eth    原文地址:https://www.cnblogs.com/HeCG95/p/12000093.htmlserver 块中添加以下内容:error_page  405 =200 @405;
location @405 {
    proxy_method GET;
    proxy_pass http://localhost;# 此处应为你本地的地址
}
                    文章来自:搜素材网的编程语言模块,转载请注明文章出处。
文章标题:nginx下请求模拟接口json返回405
文章链接:http://soscw.com/index.php/essay/85155.html
            文章标题:nginx下请求模拟接口json返回405
文章链接:http://soscw.com/index.php/essay/85155.html
评论
亲,登录后才可以留言!