配置Apache 运行CGI---------笔记
1.
Define SRVROOT "D:\Apache24"
ServerRoot "${SRVROOT}"
设置apache的目录
2.
AddHandler cgi-script .cgi .pl
删掉#号,否则会被下载
3.
DocumentRoot "${SRVROOT}/htdocs"
<Directory "${SRVROOT}/htdocs">
Options Indexes FollowSymLinks
AllowOverride None
Options +ExecCGI 增加这一句,否则会被forbidden
Require all granted
</Directory>