http 405 错误
来源:互联网 发布:万网域名账户间转移 编辑:程序博客网 时间:2024/05/16 14:04
Apache、IIS、Nginx等绝大多数web服务器,都不允许静态文件响应POST请求,否则会返回“HTTP/1.1 405 Method not allowed”错误。
解决办法:
server
{
listen 80;
server_name domain.s135.com;
index index.html index.htm index.php;
root /opt/htdocs;
if (-d $request_filename)
{
rewrite ^/(.*)([^/])$ http://$host/$1$2/ permanent;
}
error_page 405 =200 @405;
location @405
{
root /opt/htdocs;
}
location ~ .*\.php?$
{
include conf/fcgi.conf;
fastcgi_pass 127.0.0.1:10080;
fastcgi_index index.php;
}
}
- http 405 错误
- HTTP 405错误
- http 405错误
- 莫名其妙的http 405错误
- HTTP 错误
- HTTP错误
- HTTP 错误
- HTTP错误
- HTTP 错误
- HTTP错误
- HTTP 错误
- HTTP错误
- HTTP错误
- HTTP错误
- HTTP 错误
- HTTP 405 错误--Method not allowed
- HTTP错误405-Method Not Allowed
- HTTP错误大全 400 403 404 405
- IP地址与整数之间的转换
- 成为自己时间的掌控者
- 几个可以用来实现热门APP应用PATH中menu效果的几个方法
- Android WebView使用基础
- poj 3660
- http 405 错误
- 第七章——DMVs和DMFs(4)——用DMV和DMF监控磁盘IO
- Android WebView中的JavaScript代码使用
- 浅记C语言声明 [李园7舍_404]
- Oracle 字符集的查看和修改
- Android Phone 类的详细 分析 各个类的功能
- 影响Linux服务器性能的因素
- GridView的监听,选择,美化等详解<一>
- 计算小时数差