conf:Mod rewrite,mod_jk and virtual host

Discussion in 'Apache' started by ayyappansan, Sep 23, 2009.

  1. #1
    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.
     
    ayyappansan, Sep 23, 2009 IP