Skip to content
Snippets Groups Projects
Commit a3080bb4 authored by Grazyna Jaworska's avatar Grazyna Jaworska
Browse files

Use $proxy_add_x_forwarded_for instead of $remote_addr in the Nginx access log.


Signed-off-by: default avatarBarracuda Team <admin@omega8.cc>
parent d4106fc4
No related branches found
No related tags found
No related merge requests found
...@@ -107,7 +107,7 @@ if ($nginx_has_upload_progress) { ...@@ -107,7 +107,7 @@ if ($nginx_has_upload_progress) {
?> ?>
## Log Format ## Log Format
log_format main '"$remote_addr" $host [$time_local] ' log_format main '"$proxy_add_x_forwarded_for" $host [$time_local] '
'"$request" $status $body_bytes_sent ' '"$request" $status $body_bytes_sent '
'$request_length $bytes_sent "$http_referer" ' '$request_length $bytes_sent "$http_referer" '
'"$http_user_agent" $request_time "$gzip_ratio"'; '"$http_user_agent" $request_time "$gzip_ratio"';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment