Ключевые слова:apache, proxy, (найти похожие документы)
Date: Thu, 21 Sep 2000 18:43:25 +0800
From: Eugene Grosbein <[email protected]>
Subject: Как использовать 'X-Forwarded-For' от proxy вместо реального IP.
Готов ftp://www.kuzbass.ru/pub/mod_perl/Apache-ProxyAddr-0.1.tar.gz (2Kb)
Кто хочет, тестируйте. У меня работает.
NAME
Apache::ProxyAddr - makes use of 'X-Forwarded-For' as
request IP
SYNOPSIS
# Configuration in httpd.conf
PerlModule Apache::ProxyAddr;
PerlPostReadRequestHandler Apache::ProxyAddr;
PerlSetVar ProxyAddrKnown "1.2.3.4 5.6.7.8 9.10.11.12"
DESCRIPTION
This module allows use of Apache 'allow' and 'deny'
directives even when user is behind proxy supplying
'X-Forwarded-For' HTTP header. In that case, real IP
address (instead of proxy's) will be used for access
control.
LIST OF TOKENS
·
ProxyAddrKnown "1.2.3.4 5.6.7.8 9.10.11.12"
IP addresses of proxies. 'X-Forwarded-For' will be used
for these hosts only.
CONFIGURATION
The module should be loaded upon startup of the Apache
daemon. Add the following line to your httpd.conf:
PerlPostReadRequestHandler Apache::ProxyAddr;
Setting ProxyAddrKnown from .htaccess does not work for
some reason, so set it in httpd.conf
SEE ALSO
the Apache manpage, the mod_perl manpage
AUTHORS
· mod_perl by Doug MacEachern <[email protected]>
· Apache::ProxyAddr by Eugene Grosbein <[email protected]>
COPYRIGHT
The Apache::ProxyAddr module is free software; you can
redistribute it and/or modify it under the same terms as
Perl itself.
Eugene
= [email protected] mailing list =
Mail "unsubscribe apache-talk" to [email protected] if you want to quit.
= Archive avaliable at http://www.lexa.ru/apache-talk =