httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tom Evans <>
Subject Re: [users@httpd] ProxyPass work correctly but ReWriteRule has some error
Date Thu, 01 Jul 2010 08:49:22 GMT
On Thu, Jul 1, 2010 at 7:32 AM, Tapas Mishra <> wrote:
> I have an application which is accessible on LAN as
> it is a java application
> my proxy pass rule work correctly for this as follows
>        ProxyPass /olat
>       ProxyPassReverse /olat
> I am not able to write correct ReWriteRule for this I wrote the following
>          <IfModule mod_rewrite.c>
>        ReWriteEngine on
>         RewriteRule ^/olat/ [P,L]
>       </IfModule>
> in browser I typed then with ProxyPass I was
> able to access the application but with above ReWriteRule I was not
> able to access what can be the problem in ReWriteRule above ?
> --
> Tapas

Really? You can't see what's wrong there?

Your rewrite rule says to look for the URLs beginning with '/olat/'
and you went to '/olat'.

You shouldn't be using rewrite to initiate proxying unless your
situation is strange or bizarre - and if you have control over your
situation, don't make it strange or bizarre.

Also, your question reminds me of an english saying:

Patient: Doctor, it hurts when I do this: *patient waves his arm around*
Doctor: Don't do that then....

You have it working in the correct manner, and then break it and say
woe is me :/



The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message