Linux上安装了Python,但访问Python写的cgi 脚本,出现不能解析的情况: 浏览器出现: #!/usr/bin/python # -*-python-*- # # Copyright (C) 1999-2006 The ViewCVS Group. All Rights Reserved. # 请教各位,问题出在何处?
by kangkangss - Python - 2011-07-26 11:11:17 阅读(20007) 回复(13)
晕死我了,以前配置过,现在忘记了,请教大家 我有一 cgi 程序需要在 apache 下配置为如下 path 访问方式 tracker.cgi 放在 /home/www/cgi-bin/btsearch/tracker.cgi 而 cgi 目录在 /home/www/cgi-bin/ 现需要配置 apache 1.329 为如下访问 http://xxxxx.xx/btsearch/ 即可访问到 tracker.cgi 而 http://xxxx.xx/btsearch/announce 则是像这样 tracker.cgi/announce 就是 /announce 是一个参数 请大家帮一下
我已经把cgi这个目录的权限改成777还是不行. 哪位高手帮我看看是什么问题下面是error_log的内容. [Sun May 04 05:26:10 2008] [notice] Fastcgi: process manager initialized (pid 6901) [Sun May 04 05:26:10 2008] [notice] apache/2.2.4 (Unix) mod_fastcgi/2.4.6 configured -- resuming normal operations [Sun May 04 05:26:30 2008] [error] [client 192.168.4.1] (2)No such file or directory: exec of '/usr/local/apac...
平台是Win,但是我甚至按默认设置,访问cgi-bin中的脚本都是500错误,我看了目录是everyone完全控制啊,到底怎么回事,配置了很多机器,在win下就是403错误,我directory配置的没错的啊,默认也试过。
请教AS4 apache中的http://IP/cgi-bin/拒绝访问是默认的吗?
httpd.conf
ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
apache2版本2.0.53-5
/etc/apache2/apache2.conf内容
#Global Setting
Listen 80
User www-data
Group www-data
TypesConfig /etc/mime.types
Alias /nmap /home
Alias /bugzilla /var/www/bugzilla
我配置的apache server 最大就是256人 ,但是配置的网站用到1000 怎么办啊 ?
是用这些参数定义的吗 99
安装cgi论坛时出现,访问IP/cgi-BIN/INDEX.cgi报错 Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, root@coolc.org and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the...
建立tcp连接; sprintf(buffer, "GET http://192.168.1.6/cgi-bin/recv_msg?cmd=%lu&value=%d HTTP/1.0\r\n", req_cmd,ulValue) 向套接口写:Write(iSockFd, buffer,strlen(buffer) ); 结果是访问不成功。web服务器已经可以收到包了,但是没能调用到cgi. 而再命令行用wget访问则可以成功。 请问这是怎么回事? 我用上述方法有的机器可以访问成功有的则不能,是不是跟设置有关系?...