cgi-bin下能否设置 DirectoryIndex ?

cgi-bin下能否设置 DirectoryIndex ?

scriptalias后的地方,直接访问类似aaa.com/cgi-bin/ 会报错, 这里如何设置 DirectoryIndex ?

我试了 DirectoryIndex index.cgi, 但是还是报错.
楼上的老大,能不能把报错信息发上来?

你确定是什么错误?


[Copy to clipboard] [ - ]
CODE:
[Tue Aug 28 18:50:41 2007] [error] [client 2.2.2.2] attempt to invoke directory as script: /var/www/cgi-bin/
[Tue Aug 28 18:50:46 2007] [error] [client 2.2.2.2] FastCGI: invalid (dynamic) server "/var/www/fcgi/": script is a directory!

ScriptAlias /fcgi "/var/www/fcgi"
<Location /fcgi>
  SetHandler  fastcgi-script
  Options ExecCGI
  DirectoryIndex index.fcgi
</Location>


  ScriptAlias /cgi-bin/ /var/www/cgi-bin/
  <Directory "/var/www/cgi-bin">
    AllowOverride None
    DirectoryIndex index.cgi
    Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
    Order allow,deny
    Allow from all
  </Directory>


index.cgi index.fcgi也都存在的

log怎么说?
[Tue Aug 28 18:50:41 2007] [error] [client 2.2.2.2] attempt to invoke directory as script: /var/www/cgi-bin/
[Tue Aug 28 18:50:46 2007] [error] [client 2.2.2.2] FastCGI: invalid (dynamic) server "/var/www/fcgi/": script is a directory!


没贴access log,只有error log暂时


临时用rewrite解决