client-ip mail proxy
Hari Hendaryanto
hari.h at csmcom.com
Fri Aug 31 10:06:21 UTC 2012
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
TIA
PT.CITRA SARI MAKMUR
SATELLITE & TERRESTRIAL NETWORK
Connecting the distance - anytime, anywhere, any content
http://www.csmcom.com
More information about the nginx
mailing list