|
|
|
|
|
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
|
|
|
|
|
|