Re: 301 permanent redirects in Apache + Tomcat using mod_jk (solved partly)

2008-04-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Francis, Francis Galiegue wrote: | 2008/4/12, Christopher Schultz [EMAIL PROTECTED]: | Sorry to pick nits, but the fallacy that Tomcat sucks as a static | content server just needs to die. | | Well, the performance tests we did (Tomcat

Re: 301 permanent redirects in Apache + Tomcat using mod_jk (solved partly)

2008-04-13 Thread Francis Galiegue
2008/4/13, Shashidhar Rampally [EMAIL PROTECTED]: [...] Also when I tried to replace one VirtualHost with multiple VirtualHosts (and hence not needing mod_rewrite), I am getting the following error message: [warn] VirtualHost xyz.com:80 overlaps with VirtualHost www.xyz.com:80, the first

Re: 301 permanent redirects in Apache + Tomcat using mod_jk (solved partly)

2008-04-13 Thread Shashidhar Rampally
Finally I figured it out! I had to read about VirtualHost and NameVirtualHost in the Apache manual, which I was trying to avoid. :) Here's my final configuration. I have used both RewriteMatch and mod_rewrite (just to to remind myself it can also be done both ways). For now, I have chosen not to

Re: 301 permanent redirects in Apache + Tomcat using mod_jk (solved partly)

2008-04-12 Thread Shashidhar Rampally
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

Re: 301 permanent redirects in Apache + Tomcat using mod_jk (solved partly)

2008-04-12 Thread Francis Galiegue
2008/4/12, Shashidhar Rampally [EMAIL PROTECTED]: 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

Re: 301 permanent redirects in Apache + Tomcat using mod_jk (solved partly)

2008-04-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Francis, Francis Galiegue wrote: | Apache is much better at serving static content... To be fair, Apache httpd and Tomcat are about equal. But, if you are already using Apache httpd, you may as well have it serve the static content instead of

Re: 301 permanent redirects in Apache + Tomcat using mod_jk (solved partly)

2008-04-12 Thread Francis Galiegue
2008/4/12, Christopher Schultz [EMAIL PROTECTED]: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Francis, Francis Galiegue wrote: | Apache is much better at serving static content... To be fair, Apache httpd and Tomcat are about equal. But, if you are already using Apache httpd, you

Re: 301 permanent redirects in Apache + Tomcat using mod_jk (solved partly)

2008-04-12 Thread Shashidhar Rampally
My troubles are not yet over! :) With my configuration, I am having problems with HTTPS pages. I am getting a 404 error. I get that error even though I replaced VirtualHost *:80 with VirtualHost *:* Also when I tried to replace one VirtualHost with multiple VirtualHosts (and hence not needing

Re: 301 permanent redirects in Apache + Tomcat using mod_jk

2008-04-11 Thread Francis Galiegue
2008/4/11, Shashidhar Rampally [EMAIL PROTECTED]: Hi guys, I am trying to permanently redirect http://xyz.com to http://www.xyz.com, which is hosted on Apache2 + Tomcat 5.5.9 with mod_jk. I am trying to use .htaccess file to do so. So far my efforts have been unsuccessful! If I were

Re: 301 permanent redirects in Apache + Tomcat using mod_jk

2008-04-11 Thread Shashidhar Rampally
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. Otherwise I understand how your solution would have worked. :) I have alternate solution that involves changing Tomcat's server.xml

Re: 301 permanent redirects in Apache + Tomcat using mod_jk

2008-04-11 Thread Francis Galiegue
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

Re: 301 permanent redirects in Apache + Tomcat using mod_jk

2008-04-11 Thread Terence M. Bandoian
Hi- I'd suggest using RewriteLog and RewriteLogLevel to determine exactly how your RewriteCond and RewriteRule directives are processed. -Terence M. Bandoian Subject: 301 permanent redirects in Apache + Tomcat using mod_jk From: Shashidhar Rampally [EMAIL PROTECTED] Date: Fri, 11 Apr

Re: 301 permanent redirects in Apache + Tomcat using mod_jk

2008-04-11 Thread Shashidhar Rampally
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

Re: 301 permanent redirects in Apache + Tomcat using mod_jk

2008-04-11 Thread Francis Galiegue
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

Re: 301 permanent redirects in Apache + Tomcat using mod_jk

2008-04-11 Thread Shashidhar Rampally
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

Re: 301 permanent redirects in Apache + Tomcat using mod_jk

2008-04-11 Thread Shashidhar Rampally
I am sorry, I meant I do not know anything about mod_proxy. 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 -