Creating vhosts to redirect to different Tomcat applications

Discussion in 'Apache' started by Pesho318i, May 30, 2012.

  1. #1
    Hi all,

    I have a single Tomcat application. My Tomcat connector is defined for port 8443 (https). I access it through https://my.first.domain/webapp1
    Currently I am using iptables to redirect any traffic from port 443 to port 8443.
    In the future I am planning to add more Tomcat webapps and would like to have a dedicated domain name for each one of them. For example https://my.first.domain goes to webapp1, https://my.second.domain goes to webapp2, etc. I guess this can be done with apache vhosts. Could you give me a hand with this?

    Thanks,
    P.
     
    Pesho318i, May 30, 2012 IP