Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 69824 invoked from network); 2 Jul 2007 11:59:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Jul 2007 11:59:06 -0000 Received: (qmail 83603 invoked by uid 500); 2 Jul 2007 11:58:55 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 83590 invoked by uid 500); 2 Jul 2007 11:58:55 -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 83579 invoked by uid 99); 2 Jul 2007 11:58:55 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Jul 2007 04:58:55 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of sanjayamrt@gmail.com designates 64.233.162.225 as permitted sender) Received: from [64.233.162.225] (HELO nz-out-0506.google.com) (64.233.162.225) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Jul 2007 04:58:50 -0700 Received: by nz-out-0506.google.com with SMTP id l1so787243nzf for ; Mon, 02 Jul 2007 04:58:29 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=ta6eapYBusRssZwYH4NB0LsiNm8ZVQhpW9ckW+yVx3BFSvTZy4nbcrp4gccpQSUEyFFau7lzcLUEL0gzTQ2ebmCwpKLP6Q+ns3S47EJXjl3KROISDCvXiRZh+0P6PWImSaObWxZ4yTfCa1Vw3W/gGUP3JRaVY2nsNAnfGhCmfTg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=Qn/lSsDWuGRNtIMVHSjAouaPnKt+UtjjxYteS1mhUChLv/QL/l/97iPdmE4SbhGNdVeRxuW0mIOn1ex195cPe8Q13oiRE8u0K2Vr6NuOJrRiqrWDednpjRd6w8i3dn5r9B0g4qTr/Xyy67xjY4WCFbrRYFzeoV1UWT/idWCTRPc= Received: by 10.141.53.15 with SMTP id f15mr1439942rvk.1183377509263; Mon, 02 Jul 2007 04:58:29 -0700 (PDT) Received: by 10.141.5.16 with HTTP; Mon, 2 Jul 2007 04:58:29 -0700 (PDT) Message-ID: <8a0832a10707020458g6bb3b04dt16dc9f4680293f85@mail.gmail.com> Date: Mon, 2 Jul 2007 17:28:29 +0530 From: "Madonesa sanjaya" To: users@httpd.apache.org In-Reply-To: <813716b60707020323y59551af8xf5f434104af68acb@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_7504_23305041.1183377509233" References: <8a0832a10707020252l4cd87c9fl67e6ecf2fcb5250e@mail.gmail.com> <813716b60707020323y59551af8xf5f434104af68acb@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] Access parameters in URL ------=_Part_7504_23305041.1183377509233 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi , I have configured apache as a reverse proxy. Then for a particular url , I need to add some headers to the request. At the moment I'm doing it statically using the following configuration in httpd.conf file. ProxyRequests Off Order deny,allow Allow from all ProxyPass /care http://localhost:8080/test-care ProxyPassReverse /care http://localhost:8080/test-care RequestHeader add h1 "test1" RequestHeader add h2 "test2" RequestHeader add h3 "test3" At the moment it is working fine.But I need to change the headers dynamically. I need to send the header values as URL parameters and need to set the three headers based on the the paramerters in the URL. Is there any way to do it without using script? Cheers, Sanjaya. On 7/2/07, Vincent Bray wrote: > > On 02/07/07, Madonesa sanjaya wrote: > > Hi , > > Is there any way to access parameters in a URL without writting a > > script? > > Yes there is, usually by using RewriteCond. See: > > http://wiki.apache.org/httpd/Rewrite/Common/QueryString > > Perhaps you could elaborate on your question a little? > > -- > noodl > > --------------------------------------------------------------------- > 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 > > ------=_Part_7504_23305041.1183377509233 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi ,
    I have configured apache as a reverse proxy. Then for a particular url , I need to add some headers to the request. At the moment I'm doing it statically using the following configuration in httpd.conf file.

ProxyRequests Off

<Proxy *>
Order deny,allow
Allow from all
</Proxy>

ProxyPass /care http://localhost:8080/test-care
ProxyPassReverse /care http://localhost:8080/test-care

<LocationMatch "/care">
    RequestHeader add h1 "test1"
    RequestHeader add h2 "test2"
    RequestHeader add h3 "test3"
</LocationMatch>

At the moment it is working fine.But I need to change the headers dynamically.  I need to send the header values as URL parameters and need to set the three headers based on the the paramerters in the URL. Is there any way to do it without using script?

Cheers,
Sanjaya.


On 7/2/07, Vincent Bray <noodlet@gmail.com> wrote:
On 02/07/07, Madonesa sanjaya <sanjayamrt@gmail.com> wrote:
> Hi ,
>      Is there any way to access parameters in a URL without writting a
> script?

Yes there is, usually by using RewriteCond. See:

http://wiki.apache.org/httpd/Rewrite/Common/QueryString

Perhaps you could elaborate on your question a little?

--
noodl

---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


------=_Part_7504_23305041.1183377509233--