On Thu, Jul 1, 2010 at 7:32 AM, Tapas Mishra <mightydre...@gmail.com> 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-unsubscr...@httpd.apache.org " from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org