I have a domain myapp.info
and a Tomcat7 instance.
Now I want to configure Tomcat 7 so that instead of entering a URL like http://AAA.BBB.CCC.DDD:8080/myapp-web
I will be able to use URL like http://web.myapp.info
(and instead of http://AAA.BBB.CCC.DDD:8080/probe/
use probe.myapp.info
).
In order to make it work, I need to do three things:
- Make sure that when the user enters the
myapp.info
URL, he is directed toAAA.BBB.CCC.DDD
. - Setup Tomcat7 subdomains mappings.
- Change the port of the HTTP connector.
How can I do it?
Update 1: Please note that at the moment there is no connection between the domain myapp.info
and the Tomcat instance. I have bought the domain, but it is not configured to be served by the Tomcat instance (so I need to make that connection, too).