liyin37 commented on issue #110:
URL: https://github.com/apache/apisix-docker/issues/110#issuecomment-752358917


   debug日志:
   2020/12/30 07:25:45 [warn] 37#37: *12314 [lua] init.lua:162: 
http_ssl_phase(): failed to fetch ssl config: failed to fetch SSL certificate: 
not found, context: ssl_certificate_by_lua*, client: 8.210.143.155, server: 
0.0.0.0:9443
   2020/12/30 07:25:45 [info] 37#37: *12310 [lua] init.lua:338: 
http_access_phase(): matched route: 
{"value":{"priority":0,"plugins":{"proxy-rewrite":{"scheme":"https"},"ip-blacklist":{"blacklist":[["124.205.245.114","1609308000000","1609311600000"]]}},"uris":["\/test\/*"],"id":"402846fc7673cae00176745d682618df","desc":"test","upstream":{"hash_on":"vars","nodes":[{"host":"www.baidu.com","port":443,"weight":1}],"type":"roundrobin"}},"has_domain":true,"_cache_ver":"23#1609312931.291","clean_handlers":{},"createdIndex":23,"dns_value":{"priority":0,"plugins":{"proxy-rewrite":{"scheme":"https"},"ip-blacklist":{"blacklist":[["124.205.245.114","1609308000000","1609311600000"]]}},"uris":["\/test\/*"],"id":"402846fc7673cae00176745d682618df","desc":"test","upstream":{"nodes":[{"host":"103.235.46.39","port":443,"weight":1}],"hash_on":"vars","type":"roundrobin"}},"key":"\/apisix\/routes\/402846fc7673cae00176745d682618df","modifiedIndex_org":23,"modifiedIndex":"23#1609312931.291"},
 client: 8.210.
 143.155, server: , request: "GET /test/1 HTTP/1.1", host: "8.210.172.30:9443"
   2020/12/30 07:25:45 [info] 37#37: *12310 [lua] init.lua:175: parse_domain(): 
parse addr: 
{"address":"103.235.46.39","class":1,"ttl":173,"name":"www.wshifen.com","section":1,"type":1},
 client: 8.210.143.155, server: , request: "GET /test/1 HTTP/1.1", host: 
"8.210.172.30:9443"
   2020/12/30 07:25:45 [info] 37#37: *12310 [lua] init.lua:176: parse_domain(): 
resolver: ["127.0.0.11"], client: 8.210.143.155, server: , request: "GET 
/test/1 HTTP/1.1", host: "8.210.172.30:9443"
   2020/12/30 07:25:45 [info] 37#37: *12310 [lua] init.lua:177: parse_domain(): 
host: www.baidu.com, client: 8.210.143.155, server: , request: "GET /test/1 
HTTP/1.1", host: "8.210.172.30:9443"
   2020/12/30 07:25:45 [info] 37#37: *12310 [lua] init.lua:179: parse_domain(): 
dns resolver domain: www.baidu.com to 103.235.46.39, client: 8.210.143.155, 
server: , request: "GET /test/1 HTTP/1.1", host: "8.210.172.30:9443"
   2020/12/30 07:25:45 [info] 37#37: *12310 [lua] balancer.lua:160: 
pick_server(): route: 
{"value":{"priority":0,"plugins":{"proxy-rewrite":{"scheme":"https"},"ip-blacklist":{"blacklist":[["124.205.245.114","1609308000000","1609311600000"]]}},"uris":["\/test\/*"],"id":"402846fc7673cae00176745d682618df","desc":"test","upstream":{"hash_on":"vars","nodes":[{"host":"www.baidu.com","port":443,"weight":1}],"type":"roundrobin"}},"has_domain":true,"_cache_ver":"23#1609312931.291","clean_handlers":{},"createdIndex":23,"dns_value":{"priority":0,"plugins":{"proxy-rewrite":{"scheme":"https"},"ip-blacklist":{"blacklist":[["124.205.245.114","1609308000000","1609311600000"]]}},"uris":["\/test\/*"],"id":"402846fc7673cae00176745d682618df","desc":"test","upstream":{"nodes":[{"host":"103.235.46.39","port":443,"weight":1}],"hash_on":"vars","type":"roundrobin"}},"key":"\/apisix\/routes\/402846fc7673cae00176745d682618df","modifiedIndex_org":23,"modifiedIndex":"23#1609312931.291"}
 while connecting to upstr
 eam, client: 8.210.143.155, server: , request: "GET /test/1 HTTP/1.1", host: 
"8.210.172.30:9443"
   2020/12/30 07:25:45 [info] 37#37: *12310 [lua] balancer.lua:161: 
pick_server(): ctx: 
{"conf_id":"402846fc7673cae00176745d682618df","var":{"host":"8.210.172.30","request_method":"GET","request_uri":"\/test\/1","upstream_uri":"\/test\/1","remote_addr":"8.210.143.155","uri":"\/test\/1","is_args":"","upstream_scheme":"https","_request":"cdata<void
 *>: 
0x56405e190bd0"},"upstream_version":"23#1609312931.291","upstream_key":"roundrobin#route_402846fc7673cae00176745d682618df","upstream_healthcheck_parent":"table:
 
0x7fd68d9ef658","conf_type":"route","conf_version":"23#1609312931.291","upstream_conf":"table:
 
0x7fd68d8662b8","matched_route":{"value":{"priority":0,"plugins":{"proxy-rewrite":{"scheme":"https"},"ip-blacklist":{"blacklist":[["124.205.245.114","1609308000000","1609311600000"]]}},"uris":["\/test\/*"],"id":"402846fc7673cae00176745d682618df","desc":"test","upstream":{"hash_on":"vars","nodes":[{"host":"www.baidu.com","port":443,"weight":1}],"type":"roundrobin"}},"has_domain":true,"_c
 
ache_ver":"23#1609312931.291","clean_handlers":{},"createdIndex":23,"dns_value":{"priority":0,"plugins":{"proxy-rewrite":{"scheme":"https"},"ip-blacklist":{"blacklist":[["124.205.245.114","1609308000000","1609311600000"]]}},"uris":["\/test\/*"],"id":"402846fc7673cae00176745d682618df","desc":"test","upstream":{"nodes":[{"host":"103.235.46.39","port":443,"weight":1}],"hash_on":"vars","type":"roundrobin"}},"key":"\/apisix\/routes\/402846fc7673cae00176745d682618df","modifiedIndex_org":23,"modifiedIndex":"23#1609312931.291"},"plugins":[{"priority":5000,"access":"function:
 0x7fd68d974ce8","name":"ip-blacklist","check_schema":"function: 
0x7fd68d974ab0","schema":{"properties":{"blacklist":{"items":{"type":"array"},"minItems":1,"type":"array"}},"type":"object","oneOf":[{"required":["blacklist"]}]},"version":0.1},"table:
 
0x7fd68d9f9a80",{"priority":1008,"version":0.1,"schema":{"type":"object","properties":{"regex_uri":{"maxItems":2,"description":"new
 uri that substitute from client uri for up
 stream, lower priority than uri property","items":{"description":"regex 
uri","type":"string"},"minItems":2,"type":"array"},"uri":{"maxLength":4096,"pattern":"^\\\/.*","minLength":1,"description":"new
 uri for 
upstream","type":"string"},"scheme":{"type":"string","enum":["http","https"],"description":"new
 scheme for 
upstream"},"host":{"type":"string","pattern":"^[0-9a-zA-Z-.]+$","description":"new
 host for 
upstream"},"headers":{"type":"object","minProperties":1,"description":"new 
headers for 
request"}},"additionalProperties":false,"minProperties":1},"check_schema":"function:
 0x7fd68da145f8","name":"proxy-rewrite","rewrite":"function: 
0x7fd68da148f0"},"table: 0x7fd68d9f90f0"]} while connecting to upstream, 
client: 8.210.143.155, server: , request: "GET /test/1 HTTP/1.1", host: 
"8.210.172.30:9443"
   2020/12/30 07:25:45 [info] 37#37: *12310 [lua] balancer.lua:264: 
load_balancer(): proxy request to 103.235.46.39:443 while connecting to 
upstream, client: 8.210.143.155, server: , request: "GET /test/1 HTTP/1.1", 
host: "8.210.172.30:9443"
   2020/12/30 07:25:45 [info] 37#37: *12310 client 8.210.143.155 closed 
keepalive connection
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to