nginx apache2 (rpaf-0.6)
Alex Vorona
voron at amhost.net
Tue Dec 2 18:07:35 MSK 2008
02.12.2008 16:28, over at nn.ru wrote:
> # cat /etc/apache2/mods-enabled/rpaf.conf
> RPAFenable On
> RPAFproxy_ips 127.0.0.1 10.0.3.3
> RPAFsethostname On
> RPAFheader X-Forwarded-For
- RPAFheader X-Forwarded-For
+ RPAFheader X-Real-IP
>
> nginx.conf:
> ---- [ cut ] -----
> location / {
> proxy_pass http://10.0.3.3:8080;
> proxy_set_header Host $host;
> proxy_set_header X-Real-IP $remote_addr;
> proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
Попробуйте так
More information about the nginx-ru
mailing list