小编kas*_*sko的帖子

nginx post 方法不起作用

我在 nginx 使用 Http POST 方法下载 excel 文件时遇到问题。事实上,我收到状态代码:405 不允许。

这是我的配置

upstream backend{
    server localhost:9090;
    server localhost:9091;
    server localhost:9092;
    server localhost:9093;
}

server {
    listen       8887;
    server_name  localhost;

    location / {
        proxy_pass  http://backend;
        proxy_next_upstream error timeout http_404; 
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header Host $http_host;
    }
}
Run Code Online (Sandbox Code Playgroud)

我怎么解决这个问题。

先感谢您。

nginx http-status-code-405

3
推荐指数
1
解决办法
2万
查看次数

标签 统计

http-status-code-405 ×1

nginx ×1