免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3509 | 回复: 6
打印 上一主题 下一主题

[Web] apache: post can't find ? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-07-11 16:39 |只看该作者 |倒序浏览
Method Not Allowed
The requested method POST is not allowed for the URL /blast/blast.cgi.

Apache/1.3.37 Server at localhost.localdomain Port 80

what can i do?

论坛徽章:
0
2 [报告]
发表于 2007-07-11 19:25 |只看该作者

论坛徽章:
0
3 [报告]
发表于 2007-07-11 20:52 |只看该作者
你是不是使用了mod_proxy ?
如果是请确定你的配置是正确的
TraceEnable off causes the core server and mod_proxy to return a 405 FORBIDDEN error to the client.


将TraceEnable设置为on试试

论坛徽章:
0
4 [报告]
发表于 2007-07-11 21:06 |只看该作者
在主服务器配置文件中,使用Options指令显式地允许特定目录中CGI的执行:

<Directory /usr/local/apache/htdocs/somedir>
Options +ExecCGI
</Directory>

上述指令使Apache允许CGI文件的执行。另外,还必须告诉服务器哪些文件是CGI文件。下面的AddHandler指令告诉服务器所有带有cgi或pl后缀的文件是CGI程序:

AddHandler cgi-script cgi pl

论坛徽章:
0
5 [报告]
发表于 2007-07-11 21:16 |只看该作者
我在httpd.conf里面加上了:
<Directory "/var/www/localhost/htdocs/blast">
AddHandler cgi-script cgi REAL

Options Indexes FollowSymLinks MultiViews +ExecCGI

Order allow,deny

Allow from all

</Directory>

<Directory "/var/www/localhost/htdocs/blast">

AllowOverride None

Options +ExecCGI

Order allow,deny

Allow from all

</Directory>
结果还是不原样

论坛徽章:
0
6 [报告]
发表于 2007-07-11 21:28 |只看该作者
TraceEnable在apache里找不到亚

论坛徽章:
0
7 [报告]
发表于 2007-07-11 21:34 |只看该作者
还有一个问题是:
出现这种界面,

Screenshot.png (71.37 KB, 下载次数: 21)

Screenshot.png
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP