配置如下
<VirtualHost *:80>
DocumentRoot D:web_root est
ServerName www.test.com
<Directory />
Options FollowSymLinks
AllowOverride All
Order deny,allow
Allow from all
</Directory>
#以下是配置CGI程序
ScriptAlias / "D:/web_root/test/cgi-bin/"
#ScriptAlias /cgi-bin/ "D:/web_root/test/cgi-bin/"
<Directory "D:/web_root/test/cgi-bin/">
AllowOverride All
Options +Includes
</Directory>
</VirtualHost>
访问 www.test.com/index.exe,此时不会提示下载,而是展现index.exe中的内容。