boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
BuildingWeb版 - 再请教一个APACHE中设CGI的问题
相关主题
apache conf help!!!
Re: Perl and Apache
在Apache_Win32中如何设置cgi-bin呀
SSI support of Apache Server under NT4.0?
急问,大侠请看!
另一个问题,关于.htpasswd的
cgi-bin options in apache server?
Can not start Apache 2 with 用户认证. :-(
I got it, thanksRe: 再请教一个APACHE中设CGI的问题
[转载] How to start IIS 5.0 in windows 2000 professional version.
相关话题的讨论汇总
话题: cgi话题: bin话题: apache话题: options
进入BuildingWeb版参与讨论
1 (共1页)
p****j
发帖数: 6
1
我是在WIN XP下装的apache,我的web放在g:\web site
运行正常,现在想设CGI。
我的做法如下:
缺省:ScriptAlias /cgi-bin/ "g:/apahce/cgi-bin/"
我曾改成:ScriptAlias g:/web site/cgi-bin/ "g:/apahce/cgi-bin/"
它变得很怪,restart之后自动stop,只好不动它,改回缺省值。
Then I changed "Options" to "Options +ExecCGI"
and then: AddHandler cgi-script .cig .pl
AllowOverride Options
g:\web site\cgi-bin\里有一个PL程序,名为a.pl
g:\apache\cgi-bin\里有一个自带的PL程序,名为printenv.pl
我在浏览器中写localhost/cgi-bin/a.pl
得到the page cannot be found
敲入localhost/cgi-bin/printenv.pl
是internal
N*********r
发帖数: 40
2
Did you check Apeche's error log?
You should be able to see what exactly the errors were.
For you first problem, I guess I didn't apply "" around your directory name
so Apache can't parse the ScriptAlias correctly...

【在 p****j 的大作中提到】
: 我是在WIN XP下装的apache,我的web放在g:\web site
: 运行正常,现在想设CGI。
: 我的做法如下:
: 缺省:ScriptAlias /cgi-bin/ "g:/apahce/cgi-bin/"
: 我曾改成:ScriptAlias g:/web site/cgi-bin/ "g:/apahce/cgi-bin/"
: 它变得很怪,restart之后自动stop,只好不动它,改回缺省值。
: Then I changed "Options" to "Options +ExecCGI"
: and then: AddHandler cgi-script .cig .pl
: AllowOverride Options
: g:\web site\cgi-bin\里有一个PL程序,名为a.pl

1 (共1页)
进入BuildingWeb版参与讨论
相关主题
[转载] How to start IIS 5.0 in windows 2000 professional version.
Apache 与persnoal web server冲突?
急,TOMCAT4.0.3 上怎么把default port设成80?
Apache Loadable module 问题
[转载] Web Server Question
关于apache的新手问题
[转载] 急问apache server 的问题
can't run apache on xp after sp2
http server question
怎么在Apache tomcat6下装php5?
相关话题的讨论汇总
话题: cgi话题: bin话题: apache话题: options