【问题标题】:Where Is Apache's DirectoryIndex file: index.pyApache 的 DirectoryIndex 文件在哪里:index.py
【发布时间】:2017-08-13 04:15:33
【问题描述】:

我觉得这个问题很简单,但我认为我遗漏了一些东西。我想了解更多关于 Apache 的(?启用站点、虚拟主机、目录?)。在我的目录中,我有DirectoryIndex /cgi-bin/index.py。这个文件在哪里?

【问题讨论】:

    标签: apache2 virtualhost directoryindex


    【解决方案1】:

    通常,DirectoryIndex 的参数是一个相对路径,例如“index.html”,它存在于您尝试访问的目录中。

    当参数以斜杠开头时,URL 会被服务器正常配置转换为文件——比如 DocumentRoot 和 ScriptAlias(因为你有 /cgi-bin/)。

    您应该能够从您的 Apache 配置中确定 /cgi-bin/ 在文件系统上的映射位置。

    注意:此脚本不是 ASF 中 httpd 的一部分。

    【讨论】:

      猜你喜欢
      • 2014-09-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-07-04
      • 2011-01-19
      • 2010-12-16
      • 1970-01-01
      • 2020-11-20
      相关资源
      最近更新 更多