Hellol,

I want to add a header if the Remote_Addr is equal to an address
defined in /etc/hosts file.
But I coundn't figure out how to achieve this.

The Host file contain this line:
Banana 123.123.123.123

In .htaccess, I cound use:
Allow from Banana

but this time I want to add a request header for forwarding:
but using the following does not work:

SetEnvIf Remote_Addr Banana this_is_banana
SetEnvIf Remote_Host Banana this_is_banana


Accourding the documentation the 2nd argument is a regex. So I am
assuming the "Banana" has been treated as a regex string.

Is there any way do it?


-- 
Regards,
Penguin


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/cajg5x_audc3qvj6h6vdhoplsrkvf-rorgoa9qqvhu_ngy1j...@mail.gmail.com

Reply via email to