Welcome! Log In Create A New Profile

Advanced

nginx 502

Answer
October 25, 2016 11:26AM
log_format access '$remote_addr - $remote_user [$time_local] "$request" $http_host $status $body_bytes_sent "$http_referer" "$http_x_forwarded_for" "$upstream_addr" "$upstream_status" $upstream_cache_status "$upstream_http_content_type" "$upstream_response_time" > $request_time "$http_user_agent" ';

180.106.101.115 - - [25/Oct/2016:22:53:52 +0800] "GET /Code?callback=a&userName=aa05ee5b9fdb HTTP/1.1" ab.com 502 67 "https://ab.com/login/ulogin.php?callback=loginCallback" "-" "192.168.0.116:443" "200" - "text/json; charset=UTF-8" "0.044" > 0.044 "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.80 Safari/537.36 Core/1.47.1322.400 QQBrowser/9.4.9211.400"


Why is upstream_status returned to the 200 state, while status returns is 502?

Does it mean that the backend server is returned to normal, and nginx returns to the client is 502 bad gateway? Which aspect should proceed to look into the problem?_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

nginx 502

Answer October 25, 2016 11:26AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 139
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready