今天你读书了吗

关注

Nginx 405 not allowed解决办法

今天你读书了吗

关注

阅读 51

2023-04-28


Nginx 405 not allowed解决办法

 

       Apache、IIS、Nginx等绝大多数web服务器,都不允许静态文件响应POST请求,否则会返回“HTTP/1.1 405 Method not allowed”错误。

 



server {
   listen       80;
   server_name  域名;
   
   location /{
      root /www/文件目录;
      index index.html index.htm index.php;
      error_page 405 =200 http://$host$request_uri;
   }
}




相关推荐

爱读书的歌者

NGINX: 405 Not Allowed

爱读书的歌者 65 0 0

尤克乔乔

Nginx 405 not allowed

尤克乔乔 50 0 0

杏花疏影1

Nginx的405 not allowed错误解决

杏花疏影1 112 0 0

工程与房产肖律师

HTTP 405 Method Not Allowed:解析与解决

工程与房产肖律师 13 0 0

水沐由之

is not allowed for source level below 1.7 的解决办法

水沐由之 76 0 0

迪莉娅1979

Mysql报错is not allowed to connect解决办法(开放权限)

迪莉娅1979 38 0 0

拾光的Shelly

Flutter 报错: Insecure HTTP is not allowed by platform 的解决办法

拾光的Shelly 92 0 0

一世独秀

message from server: "Host is not allowed to connect to this MySQL server"解决办法

一世独秀 70 0 0

楠蛮鬼影

error Irregular whitespace not allowed no-irregular-whitespace原因及解决办法

楠蛮鬼影 64 0 0

飞进科技

503 Service Temporarily Unavailable 解决办法-nginx

飞进科技 254 0 0

精彩评论(0)

0 0 举报