Apache的本地主机默认文件 [英] Default file for Apache localhost
问题描述
我的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:
-
* CONF
文件。 -
的.htaccess
文件。
Apache的安装目录里面的
你的HTML里面directores
*.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屋!