根路径的默认页面

问题描述:

我具有以下网站结构:

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