Welcome! Log In Create A New Profile

Advanced

Re: client-ip mail proxy

Hari Hendaryanto
August 31, 2012 07:44AM
On 8/31/2012 5:47 PM, Igor Sysoev wrote:
> On Aug 31, 2012, at 14:06 , Hari Hendaryanto wrote:
>
>> hi,
>>
>> i've setup pop3/imap4 proxy using nginx recently, everything work great, unless i cannot obtain client ip address, i'm using external auth_http server run on apache/php.
>>
>> How do i forward client ip from nginx to apache auth server? something like 'X-Forwarded-For' in http reverse proxy.
>> this is what i have done so far by adding auth_http_header
>>
>> mail {
>> .....
>> .....
>>
>> server {
>> protocol pop3;
>> listen 110;
>> starttls on;
>> auth_http_header X-Auth-Client-IP $remote_addr;
>> }
>>
>> }
>>
>> i still seeing nginx ip address in apache log
>> i need some enlightenment here
> A client IP is sent in "Client-IP" header by default.
>
>
> --
> Igor Sysoev
>

ah., yes i missed that.

thanks


PT.CITRA SARI MAKMUR
SATELLITE & TERRESTRIAL NETWORK

Connecting the distance - anytime, anywhere, any content
http://www.csmcom.com

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

client-ip mail proxy

Hari Hendaryanto August 31, 2012 06:18AM

Re: client-ip mail proxy

Igor Sysoev August 31, 2012 06:48AM

Re: client-ip mail proxy

Hari Hendaryanto August 31, 2012 07:44AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 319
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready