【问题标题】:EasyPHP default load pageEasyPHP 默认加载页面
【发布时间】:2018-09-08 18:04:13
【问题描述】:

我注意到,当我访问 本地网络 时,www 文件夹中的默认 index.php 文件不显示,当我打开文件夹时,它会自动打开带有名称的文件index.html,有人知道为什么会这样吗? (我使用的是 EasyPHP 1.8,因为它是我们在高中时使用的版本)。

谢谢!

【问题讨论】:

标签: php apache easyphp


【解决方案1】:

这取决于您使用的网络服务器配置。

apache2 配置文件中设置(例如在 Ubuntu 16.04 /etc/apache2/apache2.conf)或 .htaccess 文件中(这将优先于 .php 文件而不是 @ 987654324@文件):

DirectoryIndex index.php index.html index.htm

或者简单地说:

DirectoryIndex index.php

【讨论】:

  • 感谢您的回答,更准确地说,我想知道easyphp是否专门打开了名为“index”的文件,我猜我得到了答案。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2013-07-23
  • 1970-01-01
  • 2014-08-15
  • 2017-10-11
  • 2012-03-13
相关资源
最近更新 更多