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[3]: [apache-talk] nginx + Plesk



>>   : Apache/Constants.pm

>  
> perl-5.8.8
> mod_perl2.0.2
>     mod_perl-1.. Constants.pm ..
>    ?

 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;
-------


-- 
 ,
 jackal                          mailto:jackal@xxxxxxxxxxxx



 




Copyright © Lexa Software, 1996-2009.