You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by vicky <vi...@yahoo.co.in> on 2013/08/23 13:44:21 UTC

[users@httpd] rewrite rule along with mod_jk

I would like to redirect the request from apache to tomcat using the URL http://dev.market.bills.com/
   without mentioning any context root in this url ,the request should get directed using the above URL to /food-bils application 
which is deployed on Tomcat
  
  Kindly suggest what is the issue in the below redirection rule, as currently the  webpage is coming as blank
  
  
  <VirtualHost *:10215>
 RewriteEngine On
RewriteRule ^/(a*)$ /food-bils
ServerName dev.market.bills.com
JkMount /* myworker
JkMount /pages/overview myworker
JkMount /pages/overview/* myworker
  
</VirtualHost>

Re: [users@httpd] rewrite rule along with mod_jk

Posted by Eric Covener <co...@gmail.com>.
On Fri, Aug 23, 2013 at 7:44 AM, vicky <vi...@yahoo.co.in> wrote:
> I would like to redirect the request from apache to tomcat using the URL
> http://dev.market.bills.com/
>    without mentioning any context root in this url ,the request should get
> directed using the above URL to /food-bils application
> which is deployed on Tomcat
>
>   Kindly suggest what is the issue in the below redirection rule, as
> currently the  webpage is coming as blank
>
>
>   <VirtualHost *:10215>
>  RewriteEngine On
> RewriteRule ^/(a*)$ /food-bils

This regex doesn't make any sense.  To match /, use ^/$. You probably
need the [PT] flag too.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org