Ключевые слова:apache, proxy, (найти похожие документы)
Date: Thu, 21 Sep 2000 18:43:25 +0800
From: Eugene Grosbein <eugen@svzserv.kemerovo.su>
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 <dougm@osf.org>
· Apache::ProxyAddr by Eugene Grosbein <eugen@iname.com>
COPYRIGHT
The Apache::ProxyAddr module is free software; you can
redistribute it and/or modify it under the same terms as
Perl itself.
Eugene
= Apache-Talk@lists.lexa.ru mailing list =
Mail "unsubscribe apache-talk" to majordomo@lists.lexa.ru if you want to quit.
= Archive avaliable at http://www.lexa.ru/apache-talk =