I have a server system on which i want to host java web application's.
I can do that only with tomcat and can host multiple application's, but i don't know how can i host multiple application's on root of tomcat, so that i can access those application's with their domain names like example.com,example2.com and so on. Something like virtual shared hosting.

I have used Ngasi and liked the features that allow me to host multiple apps. on root context. Unfortunately Ngasi is not free, so i am looking for a free alternative to Ngasi that can manage the virtual shared hosting.

2 Answers
2

Hosting several applications in one Tomcat is always problematic. You can't easily restart just one application without affecting all the others.

What works for me is an apache2 / httpd web server as the front end (can also handle many domain names, ssl, rewrite etc.) which then forwards everything to several Tomcat instances, either running on the same server or even on different servers. Just use different port numbers.