根路径的默认页面 [英] Default page for root path

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

问题描述

我具有以下网站结构:

mysite.com

mysite.com

  • /app1/
  • /app2/

现在使用我的配置,当我导航到mysite.com时,它显示了服务器上的应用程序列表.

Right now with my configuration it seems when I navigate to mysite.com, it shows a list of the apps on the server.

导航mysite.com时如何显示app1/index.html?

How can I get it to show app1/index.html when i navigate mysite.com?

推荐答案

好吧...不确定为什么花了我这么长时间才能找到答案,但是...根据网上的一些网页,我现在忘记了...

Ok... not sure why it took me this long to find the answer but... according to some page online which I now forget...

将app1文件夹重命名为"root".然后,您在jettyweb配置xml中定义的默认处理程序将将此应用程序映射到/

Rename app1 folder to 'root'. The default handler defined in your jettyweb config xml will then map this app to /

您还可以放入WEB-INF文件夹和web.xml来定义默认的欢迎页面之类的内容,因此您不必键入mysite.com/index.html

You can also throw in a WEB-INF folder and web.xml to define things like the default welcome page, so you don't have to type mysite.com/index.html

这篇关于根路径的默认页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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