how to set auto redirection in tomcat

Posted by Registered User on Server Fault See other posts from Server Fault or by Registered User
Published on 2011-02-23T22:19:18Z Indexed on 2011/02/23 23:27 UTC
Read the original article Hit count: 277

I have a site http://social.openitup.in right now what you are seeing is a default Tomcat6 page. I am using mod_ajp as a front end and Apache vhost configuration for same is

<VirtualHost *:80 >

        ServerName social.openitup.in
        ServerAdmin webmaster@localhost

        ProxyRequests off
        <Proxy *>
        Order deny,allow
        Allow from all
        </Proxy>
        ProxyPreserveHost On

        ProxyPass / ajp://192.168.1.19:8009/
        ProxyPassReverse / ajp://192.168.1.19:8009/


</VirtualHost>

How ever I have an application running on it http://social.openitup.in/olat what I want to do is when some one opens http://social.openitup.in then rather than seeing Tomcat6 home page from /var/lib/tomcat6/webapps/ROOT/index.html the person is redirected to olat application which is in /var/lib/tomcat6/webapps/olat how can this be achived?

The above vhost configuration is on a machine separate than where OLAT is running.

© Server Fault or respective owner

Related posts about apache2

Related posts about reverse-proxy