Francis, I have followed your suggestion of using a <VirtualHost> but also made use of a suggestion I found on a website which talked about putting mod_rewrite rules inside the VirtualHost element along with the JkMount command inside. And wow! it works great. :)) Thank you!
The only thing that's still unsolved is how do I redirect aboutus.html permanently to aboutus.jsp (and 9 more such pages). I can follow the same concept and put all those rules inside the VirtualHost, but I was wondering if that would have performance implications? Is there anyway I can .htaccess into play? Thanks, Shashi <VirtualHost *:80> JkMount /* ajp13 RewriteEngine on Options +FollowSymlinks RewriteCond %{http_host} ^xyz.com [nc] RewriteRule ^(.*)$ http://www.xyz.com$1 [r=301,nc,L] </VirtualHost> > > On Fri, Apr 11, 2008 at 3:53 PM, Shashidhar Rampally > <[EMAIL PROTECTED]> wrote: > > Francis, > > > > Sorry if I offended you. > > Those links are > > www.xyz.com/specsheets.html -> www.xyz.com/specsheet.jsp > > www.xyz.com/aboutus.html -> www.xyz.com/aboutus.jsp > > www.xyz.com/mission/mission.html moved to www.xyz.com/mission.jsp > > etc. > > > > No, I do know anything about mod_proxy. I will look into it right away. > > > > Thanks, > > Shashi > > > > > > > > > > > > > > > > On Fri, Apr 11, 2008 at 3:28 PM, Francis Galiegue <[EMAIL PROTECTED]> > wrote: > > > 2008/4/11, Shashidhar Rampally <[EMAIL PROTECTED]>: > > > > > > > Francis, > > > > > > > > I placed the following in httpd.conf. However, the next time I > visited > > > > xyz.com, it took me to Tomcat home page. > > > > <VirtualHost xyz.com:80> > > > > DocumentRoot /not/a/valid/folder > > > > ServerName xyz.com > > > > > > > > RedirectMatch Permanent /(.*) http://www.xyz.com/$1 > > > > > > > > </VirtualHost> > > > > <VirtualHost www.xyz.com:80> > > > > DocumentRoot /usr/lib/apache-tomcat/webapps/xyz/ > > > > ServerName www.xyz.com > > > > </VirtualHost> > > > > > > > > > > > > Your's is not a comprehensive/clean solution. We also moved about 10 > > > > links. So I also wish to permanently redirect these HTML pages too. > > > > > > > > So what would really help me is a URL rewriting module/plug-in like > > > > mod_rewrite. > > > > > > > > > > Please clarify. What are these "10 links"? Individual files or whole > > > directories/webapps? > > > > > > Also, have you considered mod_proxy (ProxyPass and ProxyPassReverse)? > > > > > > -- > > > > > > > > > Francis Galiegue, [EMAIL PROTECTED] > > > "When it comes to performance, weight is everything" - Tiff Needell > > > > > > --------------------------------------------------------------------- > > > To start a new topic, e-mail: users@tomcat.apache.org > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]