set_real_ip_from

This commit is contained in:
benoit 2020-05-05 10:26:18 +00:00
parent 0d3bde1d0a
commit bd128edf16

View file

@ -61,7 +61,10 @@ Nginx :
```
set_real_ip_from W.X.Y.Z;
real_ip_recursive on;
#real_ip_recursive on;
real_ip_header X-Forwarded-For;
log_format custom '$http_x_forwarded_for - $remote_user [$time_local] '
'"$request" $status $body_bytes_sent '
'"$http_referer" "$http_user_agent"';
access_log /var/log/nginx/access.log custom;
```