LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   conf :Mod rewrite,Mod Jkand virtualhosts (http://www.linuxquestions.org/questions/linux-server-73/conf-mod-rewrite-mod-jkand-virtualhosts-757411/)

ayyappansan 09-23-2009 11:25 PM

conf :Mod rewrite,Mod Jkand virtualhosts
 
Dear All,

Previously I used to configure "Mod Rewrite Rule" in Apache, is working fine. And also I used "MOD JK Connector" for Apache Tomcat connectivity, is also working fine.
Then I tried to use both "Mod Rewrite Rule" and "MOD JK Connector" configurations in same scenario. Here I am facing an issue.

The Issue is, "Mod Rewrite Rule" is not working, it fails to rewrite the url. But "MOD JK Connector" works fine.

Can anyone please explain me that how to configure both "Mod Rewrite Rule" and "MOD JK Connector" in same scenario.


httpd.conf

NameVirtualHost *******:80

<VirtualHost **********:80>
ServerAdmin "webmaster@domain.in"
ServerName domain.in
ServerAlias www.domain.in
MIMEMagicFile /dev/null
CustomLog logs/vpaycash.in_access_log "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\""
ErrorLog logs/vpaycash.in_error_log

DocumentRoot "/home/domain/public_html"
<Directory "/home/domain/public_html">
Options +Indexes +FollowSymLinks
Order allow,deny
Allow from all
AllowOverride All
</Directory>

RewriteEngine on
Rewriterule ^index.html$ /index.iface

JkMount /*.html wlb

JkMount /*.iface wlb

JkMount /*.jspx wlb

JkMount /xmlhttp/* wlb

JkMount /block/* wlb

JkMount /*.faces wlb

JkMount /TestFilter wlb

JkMount / wlb

Alias /usage "/home/domain/public_html/usage"
<Location /usage>
Order allow,deny
Allow from all
</Location>
</VirtualHost>


Please suggest me. Thanks.

janoszen 10-25-2009 03:10 AM

Rewrite log?
 
Turn on the rewrite log so you can see, what's happening. There is an unfortunate possibility, that mod_jk intercepts requests before mod_rewrite even gets a chance. The log will tell.


All times are GMT -5. The time now is 07:33 AM.