Re: Setting Http Request Header depending on origin´s IP

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

 



On 12/18/06, Ding Deng <ding.deng@xxxxxxxxx> wrote:
"Alberto Alvarez" <alberto.alvarez@xxxxxxxxxx> writes:

> Hi all,
>       please I need some help configuring my httpd.conf rewriterule
> section. I´m actually receiving requests from a specific IP address, I
> would like to add an HTTP Header to the request when receiving
> requests from this IP.
>
> Can I do that? And if yes, how can I do it?

http://httpd.apache.org/docs/2.0/mod/mod_headers.html#examples

Does example 4 above make sense?

I´m afraid this example is for response headers. I´m looking how to
modify the request´s header by adding a new one only if that request
comes from a specific IP address.

Good try :)



> I´ve been looking at the RewriteCond sentences but they only work well
> with rewrite rules and not with RequestHeader directives.
>
> All help is more than welcome.
>
> Thanks in advance!
>
> cheers,
>
> Alberto.
>
> ---------------------------------------------------------------------
> 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

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



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