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. Thanks, Shashi On Fri, Apr 11, 2008 at 1:45 PM, Francis Galiegue <[EMAIL PROTECTED]> wrote: > 2008/4/11, Shashidhar Rampally <[EMAIL PROTECTED]>: > > > Thanks for the quick reply, Francis! > > > > My httpd.conf file doesn't have a single VirtualHost defined because I > > am using mod_jk to forward all the requests to Tomcat. > > Well, I use mod_jk AND vitural hosts. Even though, in most cases, the > hostname of the server is its real FQDN! > > mod_jk and VitrtualHosts are NOT incompatible. Meh, I even have my > <Host> defined as only responding to localhost! > > -- > > > 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]