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

Apache config setenvif



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


Reply to: