I have two web applications, which I want to be running under the one tomcat instance, but on a different ports to connect, for example first war – under 8080, and second – 8090. Is it possible to do using just two connectors in the server.xml?
So to connect to first app – i’ll use address http://localhost:8080/myFirstApp and for second – http://localhost:8090/mySecondApp.
How can I do this without running two tomcat innstances on the localhost?
Well, I think you can declare the two connectors with different ports and they will run properly. But you can’t limit the access to apps via configuration. That is – both apps will be accessible on both ports. If you need to limit that, make a
Filterthat checks and returns 404.