set_real_ip_from
This commit is contained in:
parent
0d3bde1d0a
commit
bd128edf16
1 changed files with 5 additions and 2 deletions
|
@ -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;
|
||||
```
|
Loading…
Reference in a new issue