我想访问此页面(工作)
http://stats.example.com/cgi-bin/awstats.pl?config=www.example.com
通过
http://stats.example.com/?config=www.example.com
<VirtualHost *:80> ServerName stats.example.com DocumentRoot /usr/lib/cgi-bin/ DirectoryIndex awstats.pl </VirtualHost>
然而这触发了awstats.pl的下载,显然不是我的意图。 我怎么能做这个工作,或者有一个我失踪的概念?
脚本在文件系统的“cgi-bin”目录下是不够的, 它必须使用cgi-script处理程序。 使用SetHandler指令在<Files>部分中设置处理程序,以将其限制为适当的文件名。