-
Notifications
You must be signed in to change notification settings - Fork 487
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
$upstream_addr not set #217
Comments
Maybe it failed before running 'connecting upstream' phase, you can post the whole log message here to let us check. |
I used $connect_addr instead, but I think $upstream_addr should be reused in connect module too
|
BTW, I wish to log proxy_connect_bind, as I have multi wan, I want to log every outing connections and bind_address
Any ideas? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
0. Before Your ASK
Ⅰ. Issue Description
log_format main '$proxy_protocol_addr $bytes_sent $request_length [$time_local] "$request" "$upstream_addr"'
'$status "$http_referer" "$http_user_agent"' ;
Ⅱ. Describe what happened
In log file, Upstream_addr expected to be real upstream ip address
Ⅲ. Describe what you expected to happen
In log file, Upstream_addr was set as -.
Ⅳ. How to reproduce it (as minimally and precisely as possible)
Ⅴ. Anything else we need to know?
Ⅵ. Environment:
sbin/nginx -v
):The text was updated successfully, but these errors were encountered: