Java重定向+域

时间:2018-12-26 15:16:01

标签: apache tomcat dns appdomain

我有以下内容:

  • Java应用程序(testing.war)
  • Tomcat 8
  • Mysql
  • 域:test.com

在用于重定向的VPS中,我使用:apache + tomcat,如果我写www.test.com/testing,那是可行的,但是如果我写www.test.com/,我看到了tomcat登陆页面

我需要:

  • 如果我写www.test.com/ =>我可以看到我的应用程序
  • 我可以不使用apache重定向我的应用程序吗? (仅配置tomcat 8)

1 个答案:

答案 0 :(得分:0)

您需要将WAR文件重命名为$(function() { $('#calendar').fullCalendar({ googleCalendarApiKey: 'AIzaSyCYI12U7MvN6tIDQuZT1OB67nxPNTnzBnw', eventSources: [ { googleCalendarId:'kingsmonktonapps.co.uk_pe2i7pqioptt72bd8kvp8h1eno@group.calendar.google.com' }, { googleCalendarId: 'kingsmonktonapps.co.uk_tmu7vco31e7raj9ce11a64qd08@group.calendar.google.com', } ] }); });

Tomcat uses the WAR filename as the context path(使用自动部署时)。在ROOT.war上部署应用程序的最简单方法是将WAR文件重命名为/(区分大小写)。

相关问题