【问题标题】:Using CGI page as directory index in Boa web server在 Boa Web 服务器中使用 CGI 页面作为目录索引
【发布时间】:2013-08-28 18:50:03
【问题描述】:

我在基于 ARM 的板上使用 Boa Web 服务器。 我希望使用 cgi 脚本作为主页。

在 boa.conf 中,我使用了选项

DirectoryIndex index.cgi

但是,当我在浏览器中输入主机板的 IP 时,我得到的只是 403 错误,并且只有在我手动将 /index.cgi 添加到地址栏时才能访问该页面。

改回时

DirectoryIndex index.html

一切正常。

我尝试过使用 Alias 和 ScriptAlias,但这些都没有帮助。 我意识到我可以使用 index.html 的 html 重定向作为最后的手段,但我觉得必须有更好的方法。

【问题讨论】:

    标签: indexing cgi directoryindex boa


    【解决方案1】:

    所以我找到了this patch

    当我使用 boa-0.94.13 时,它是围绕 boa-0.94.14rc20 编写的

    我已经设法通过更改以下行来编译和工作:

    req->cgi_type = CGI;
    

    reg->is_cgi = CGI;
    

    这仍然不完美,因为在 boa.conf 中将参数传递给 cgi 页面仍然会导致错误 403。

    【讨论】:

      猜你喜欢
      • 2011-12-22
      • 1970-01-01
      • 2011-10-14
      • 1970-01-01
      • 1970-01-01
      • 2012-07-29
      • 2013-04-05
      • 1970-01-01
      • 2017-11-15
      相关资源
      最近更新 更多