【发布时间】:2023-11-23 03:40:01
【问题描述】:
我有一个新配置的 Apache 2.4.7 网络服务器 (AIX7)。它显示的是我的 CGI 的内容,而不是它们的输出。
我的 conf 文件中有这个:
LoadModule cgi_module /opt/freeware/lib64/httpd/modules/mod_cgi.so
AddHandler cgi-script .cgi .pl
ScriptAlias /cgi-bin "/var/www/cgi-bin"
<Directory "/var/www/cgi-bin">
Options +FollowSymLinks +Includes -Indexes +ExecCGI
Order allow,deny
Allow from all
</Directory>
如果从 CLI 运行,我的 CGI 会按预期运行。它们是世界可读和世界可执行的。 shebang线是正确的。 error_log 中没有相关消息。
还有什么 ELSE 会导致服务器不执行 CGI?
【问题讨论】:
标签: apache configuration webserver cgi