how to write rewrite rule while configuring tomcat and apache

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

  1. #1
    Dear all

    If any way to write rewrite rule while configure tomcat and apache using mod_jk


    <VirtualHost 208.109.178.170:80>
    ServerAdmin "webmaster@vpaycash.in"
    ServerName www.vpaycash.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/vpaycashinadmin/webapps"
    <Directory "/home/vpaycashinadmin/webapps">
    Options +Indexes +FollowSymLinks
    Order allow,deny
    Allow from all
    AllowOverride All
    </Directory>

    JkMount /* wlb

    JkMount /*.faces wlb

    JkMount /*.html wlb

    JkMount /*.iface wlb

    JkMount /*.jspx wlb

    JkMount /TestFilter wlb

    JkMount /block/* wlb

    JkMount /xmlhttp/* wlb
    Alias /usage "/home/vpaycashinadmin/public_html/usage"
    <Location /usage>
    Order allow,deny
    Allow from all
    </Location>
    </VirtualHost>


    .htaccess

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index.html$ index.iface
     
    ayyappansan, Sep 15, 2009 IP