【问题标题】:Apache httpd conf file 2.2Apache httpd 配置文件 2.2
【发布时间】:2012-10-30 23:12:15
【问题描述】:

如果我想在 localhost 中打开一个 html 文件 - 例如 localhost/myfile.html - 我需要更改 Apache 的 httpd conf 文件吗?实际上我在一本书中读到这个文件名应该添加在以下行:

DirectoryIndex index.html

应该是这样的:

DirectoryIndex index.html myfile.html

我之所以这么问,是因为我创建了一个 Google 地图,其中包含一些使用 PHP 和 Ajax 从用户那里获取数据的表单,但它不起作用。所以我想可能是Apache的配置有问题。

提前致谢!

丹尼尔·黑山

【问题讨论】:

    标签: apache2


    【解决方案1】:

    不,这没有必要!

    实际上,由于一些问题,该代码无法正常工作。与 httpd 文件配置无关。修复后,该文件在 localhost 中运行良好。

    谢谢,请投票!

    丹尼尔

    【讨论】:

      猜你喜欢
      • 2012-10-14
      • 1970-01-01
      • 2019-06-13
      • 2012-08-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-08-03
      • 2017-07-28
      相关资源
      最近更新 更多