You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

BeagleBone Black上Apache 2的CGI文件404错误求助

问题:BeagleBone Black上Apache 2 CGI文件访问404错误

在刷有Debian 10镜像的BeagleBone Black上搭建Apache 2服务器后,主站点https://hostname.com可正常访问,但访问路径/usr/lib/cgi-bin/test.cgi对应的URLhttps://hostname/cgi-bin/test.cgi时,返回404错误。

已尝试同类问题的常规排障方法但无效,参考Derek Molloy的《Exploring BeagleBone》进行配置,文件权限设置正常,预期CGI文件能输出HTML内容,但实际请求失败,寻求技术支持。


相关信息

1. test.cgi代码

#!/bin/bash
 echo "Content-type: text/html"
 echo '<html><head>'
 echo '<meta charset="UTF-8">'
 echo '<title>Hello BeagleBone</title></head>'
 echo '<body><h1>Hello BeagleBone</h1><para>'
 hostname
 echo ' has been up '
 uptime
 echo '</para></html>'

2. 涉及的配置文件

  • apache2.conf(完整配置见原文)
  • 000-default.conf(完整配置见原文)
  • serve-cgi-bin.conf(完整配置见原文)

3. Apache错误日志片段

[Sat Nov 19 23:08:38.140834 2022] [mpm_event:notice] [pid 2313:tid 3069685168] AH00493: SIGUSR1 received.  Doing graceful restart
[Sat Nov 19 23:08:38.255524 2022] [mpm_event:notice] [pid 2313:tid 3069685168] AH00489: Apache/2.4.38 (Debian) configured -- resuming normal operations
[Sat Nov 19 23:08:38.255708 2022] [core:notice] [pid 2313:tid 3069685168] AH00094: Command line: '/usr/sbin/apache2'

4. Apache加载模块列表

apachectl -M输出(完整模块列表见原文)


内容的提问来源于stack exchange,提问作者talweeyah

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.12 06:40:43