在location中增加如下一行内容error_page 405 =200 $request_uri; 如下所示
server {
listen 80;
server_name likeyou.com;
location / {
root /usr/local/nginx/html;
index index.html;
error_page 405 =200 $request_uri;
}
网友评论