Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 

   


   


   

















      :: Apache-Talk
Apache-Talk mailing list archive (apache-talk@lists.lexa.ru)

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

Re[4]: [apache-talk] nginx + Plesk



, jackal.

  30  2007 ., 11:50:02:

 .
 :)

>  httpd.conf :
> PerlInitHandler realip

>  realip.pm:
> --------
> package realip;
> use strict;
> use Apache2::Const -compile => qw(:common :http);
> use Apache2::Connection;
> use Apache2::RequestRec;
> use APR::Table;

> sub handler {
>         my $r = shift;
>         my $realip = $r->headers_in->{'X-Real-IP'};
>         $r->connection->remote_ip($realip) if $realip;
>         return Apache2::Const::DECLINED;
> }

> 1;
> -------





--
 ,
 admin                          mailto:admin@xxxxxxx



 




Copyright © Lexa Software, 1996-2009.