行至水穷处 坐看“云”起时

Cloud Native ADN -> CNadn.Net

Nginx API GW 配置

•curl http://172.16.199.132/plus2api/5/nginx (访问V5 去 B
service)

{“version”:”5″} •curl -H “Access: deny” (带有Access: deny header的拒绝访问v5 API)http://172.16.199.132/plus2api/5/nginx

{“status”:403,”message”:”Forbidden”}

•curl http://172.16.199.132/plus2api/3/nginx  (访问v3 去 A service)

{“version”:”1.15.10″,”build”:”nginx-plus-r18″,”address”:”192.168.214.130″,”generation”:1,”load_timestamp”:”2019-07-28T10:46:45.350Z”,”timestamp”:”2019-07-28T13:15:06.837Z”,”pid”:1358,”ppid”:1356}

• curl http://172.16.199.132/plus2api/2/nginx (未定义的resource)
{“status”:404,”message”:”Not Found”}

nginx.conf配置文件

点赞

发表评论

电子邮件地址不会被公开。 必填项已用*标注