打开 shift - JWS - Tomcat 8 将基本 URL 重定向到应用程序战争 [英] Open shift - JWS - Tomcat 8 redirect base url to application war

查看:49
本文介绍了打开 shift - JWS - Tomcat 8 将基本 URL 重定向到应用程序战争的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 JWS 3-1 中使用了 tomcat.我有应用程序战争myapp.war";在

I am using tomcat in JWS 3-1. I have application war "myapp.war" in

/opt/webserver/webapps

现在我的网址是 domain.com/myapp我希望 domain.com 也重定向到 myapp

Now my url is domain.com/myapp I want domain.com to also redirect to myapp

我试图点击以下链接.Tomcat 基本 URL 重定向.

I was trying to follow the following link. Tomcat base URL redirection.

/opt/webserver/webapps 中没有 ROOT 文件夹.

There is no ROOT folder in /opt/webserver/webapps.

它似乎不起作用.

谁能建议我应该朝哪个方向看?

Can anyone suggest I should look in which direction?

推荐答案

如果没有单独的 Root 文件夹,那么可以在应用程序 war 的同时部署一个 ROOT.war.在 Root.war 中,我们可以添加一个 index.jsp,它将根据 Tomcat 基本 URL 重定向.

If there is no separate Root folder then can deploy a ROOT.war in parallel to the application war. In Root.war we can add an index.jsp which will forward to application as per the Tomcat base URL redirection.

这篇关于打开 shift - JWS - Tomcat 8 将基本 URL 重定向到应用程序战争的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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