Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 3361 invoked from network); 1 Jul 2010 08:50:57 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 1 Jul 2010 08:50:57 -0000 Received: (qmail 87826 invoked by uid 500); 1 Jul 2010 08:50:53 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 85679 invoked by uid 500); 1 Jul 2010 08:50:49 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 85671 invoked by uid 99); 1 Jul 2010 08:50:48 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Jul 2010 08:50:48 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,NORMAL_HTTP_TO_IP,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of tevans.uk@googlemail.com designates 209.85.161.45 as permitted sender) Received: from [209.85.161.45] (HELO mail-fx0-f45.google.com) (209.85.161.45) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Jul 2010 08:50:42 +0000 Received: by fxm10 with SMTP id 10so1506894fxm.18 for ; Thu, 01 Jul 2010 01:49:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=GBI7HnqEl2etWwwevnJLHrAmGSp5hwPQgmBEO0IfeGk=; b=qRsvXswtwMavXEwdQR10eSTN7kMZ3H6N8XUF3PWDGj9BpV9bNFvse6uA1xZ5nuYj02 YtkeBsacHz2QXAHZQM74dHpkYQAWPwZ4aHEd9ZjZUWszONhbPdaX3tqiBe80SeLhVwkK TXABVS8ubw1O1sw8h0qX9tnMqf270qsPlUF4k= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=g/CdllBxO9wKyAa061tNTPopad2MMvIFLoeyGuQPMwHrTk5j025elarEVKRzXopyoJ /dWbaeE3wm0VdPJ8Kg8FDwNrna4DjacrIhwpcisI0wkyHgGa+uaQyv0u6x6Q5APwQd/q QsVmynCEUSgV/rIkR9V5MZu1OXS5u7NxUSk3w= MIME-Version: 1.0 Received: by 10.239.165.7 with SMTP id v7mr682386hbd.176.1277974162544; Thu, 01 Jul 2010 01:49:22 -0700 (PDT) Received: by 10.239.185.1 with HTTP; Thu, 1 Jul 2010 01:49:22 -0700 (PDT) In-Reply-To: References: Date: Thu, 1 Jul 2010 09:49:22 +0100 Message-ID: From: Tom Evans To: users@httpd.apache.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] ProxyPass work correctly but ReWriteRule has some error On Thu, Jul 1, 2010 at 7:32 AM, Tapas Mishra 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 > > > =C2=A0 =C2=A0 =C2=A0 =C2=A0ProxyPass /olat http://192.168.1.5:8080/olat > =C2=A0 =C2=A0 =C2=A0 ProxyPassReverse /olat http://192.168.1.5:8080/olat > > I am not able to write correct ReWriteRule for this I wrote the following > > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 > =C2=A0 =C2=A0 =C2=A0 =C2=A0ReWriteEngine on > =C2=A0 =C2=A0 =C2=A0 =C2=A0 RewriteRule ^/olat/ http://192.168.1.5:8080/o= lat [P,L] > =C2=A0 =C2=A0 =C2=A0 > > 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 for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org