我正试图在testing环境中logginghttpstream量,以便以后用Gor回放。
到目前为止,我有以下configuration,使用后的行动转发请求到我有Gor监听的端口有效地窃听响应
server { listen 85; server_name localhost; location / { proxy_pass http://mymachine.mydomain.com; post_action @post_action; } location @post_action { proxy_pass http://localhost:87; } }
无论如何,我可以处理从第一次的反应,穿梭在别的地方?
NGinx是这个函数的错误工具吗?
最终目标是请求 – >端口1和响应 – >端口2,以便Gor可以logging文件中看到的所有内容