Re: ProxyPass work correctly but ReWriteRule has some error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Jul 1, 2010 at 7:32 AM, Tapas Mishra <mightydreams@xxxxxxxxx> wrote:
> I have an application which is accessible on LAN as
> http://192.168.1.5:8080/olat/
>
> it is a java application
> my proxy pass rule work correctly for this as follows
>
>
>        ProxyPass /olat http://192.168.1.5:8080/olat
>       ProxyPassReverse /olat http://192.168.1.5:8080/olat
>
> I am not able to write correct ReWriteRule for this I wrote the following
>
>
>          <IfModule mod_rewrite.c>
>        ReWriteEngine on
>         RewriteRule ^/olat/ http://192.168.1.5:8080/olat [P,L]
>       </IfModule>
>
> in browser I typed http://mydomain.com/olat 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
> http://mightydreams.blogspot.com
> http://wiki.xensource.com/xenwiki/Xen_on_4_app_servers

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 :/

Cheers

Tom

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux