Apache的本地主机默认文件 [英] Default file for Apache localhost

查看:200
本文介绍了Apache的本地主机默认文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的Apache2安装。当我输入的http://本地主机的它去到一个文件中的 HTTP://localhost/class/index.php 。我如何改变它说 HTTP://localhost/index.html 或任何其他页面?哪个文件将我找到的设置做到这一点?谢谢!

I have apache2 installed. When i type http://localhost it goes to a file http://localhost/class/index.php . How do i change it to say http://localhost/index.html or any other page? Which file will I find the setting to do this? Thanks!

推荐答案

Apache将不会触发HTTP重定向,除非您指示它这样做。

Apache will not trigger HTTP redirections unless you instruct it to do so.

我的建议是,你打开你的文本编辑器和搜索在以下位置字符串:

My advice is that you open your favourite text editor and search for the class string in the following locations:


    Apache的安装目录里面的
  • * CONF 文件。

  • 你的HTML里面directores
  • 的.htaccess 文件。

  • *.conf files inside the Apache installation directory.
  • .htaccess files inside your HTML directores.

如果说没有找到任何东西,你也可以搜索头()要求在 *。PHP code。

If that fails to find anything, you could also search for header() calls in your *.php code.

这篇关于Apache的本地主机默认文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆