Re: Access parameters in URL

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

 



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@xxxxxxxxx> wrote:
On 02/07/07, Madonesa sanjaya <sanjayamrt@xxxxxxxxx> 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@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