我爱编程

豆瓣图书搜索接口 405 not allowed 报错处理

2018-05-24  本文已影响17人  jlnbda3488375

亲测可行,感谢https://blog.csdn.net/zy799894671/article/details/38045513


server
{
listen 80;
server_name XXXX;
index index.html index.htm index.php;
root /XXXX;
location /
{
root /XXXX;
error_page 405 =200 http://$host$request_uri;
}

location ~ .*.php?$
{
include conf/fcgi.conf;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
}
}

上一篇 下一篇

猜你喜欢

热点阅读