如果没有/index.html?

时间:2015-05-18 07:43:17

标签: default

我希望我的URL显示我的index.html文件作为默认值,但只加载我几个月前上传到FTP的OLD练习html页面。如何在www.me14ch.leedsnewmedia.net而不是当前www.me14ch.leedsnewmedia.net/index.html上加载网站?

(是的,我知道index.html目前看起来很空白,这是因为我需要更新Dreamweaver中的链接,因为我移动了文件,只是想让默认网址首先工作!)非常感谢< / p>

1 个答案:

答案 0 :(得分:0)

我不确定您使用的是哪个容器,但在任何tomcat基础项目中,您可以在容器(web.xml)中指定欢迎文件。

  1. 在web.xml中

    &LT; welcome-file-list&gt;

    &LT; welcome-file&gt; /index.jsp< / welcome-file&gt;

    &LT; / welcome-file-list&gt;

  2. 在apache中,您可以使用解释here

    的步骤
相关问题