I've several webapps running on my small tomcat server such as this:
This is exactly what I would like:
Application1.mydomain.com to suggest to demo.myserver.com/application1
Application2.mydomain.com to suggest to demo.myserver.com/application2
Application3.mydomain.com to suggest to demo.myserver.com/application3
This is exactly what I've done:
1. I've set my DNS server to suggest Application1.mydomain.com and so forth to my servers Ip.
2. I've setup apache webserver, apache tomcat6 and also the JK2 wordpress plugin to ensure they are communicate.
3. I've set up an online domain for those my domain names in httpd-vhosts.conf and enabled it in httpd.conf.
<VirtualHost *:80> ServerName Application1.mydomain.com JkMount /* workername </VirtualHost>
4. I've verified that everything works fine with only apache.
My issue is after i use the JKMount to redirect the demands to my application. How do i do that? Or perhaps is it an easy method to do this?