我直接输入域名后,Apache2自动加载了对应目录下的index.php, 这是怎么做到的?

Apache2为什么会自动加载index.php

在目录/etc/apache2/modes-enabled下面有个配置文件dir.conf:

Apache2为什么会自动加载index.php

这个配置起的作用:

DirectoryIndex index.html index.cgi index.pl index.php index.xhtml index.htm

Apache2为什么会自动加载index.php

要获取更多Jerry的原创文章,请关注公众号"汪子熙":
Apache2为什么会自动加载index.php

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-01-24
  • 2021-07-27
  • 2021-07-07
  • 2021-08-10
  • 2021-05-22
  • 2021-08-21
猜你喜欢
  • 2021-12-22
  • 2022-12-23
  • 2021-07-05
  • 2021-08-22
  • 2021-11-19
  • 2021-07-17
相关资源
相似解决方案