0

I'm new to deploying applications on a live server so please bear with me

I have a static IP address and a webapp deployed on a server pointed at by said IP address.

So right now I can access the webapp from any machine like so

12.123.123.123:8080/myapp

How do I configure Tomcat so that I don't have to specify the port and the app name? Any pointer would be appreciated

steven35
  • 3,747
  • 3
  • 34
  • 48

1 Answers1

1

http://12.123.123.123/ is just shorthand for http://12.123.123.123:80/, so you will want to set up Tomcat to run on port 80 (or port 443 if you're doing HTTPS). Next, you want to deploy to / instead of /myapp - in Tomcat, this means using the special "ROOT" app-name for your app (it can be ROOT.war for example) - the all-caps is important.

dcsohl
  • 7,186
  • 1
  • 26
  • 44