I have nginx server with configuration:
location / {
mirror /mirror;
proxy_pass http://backend;
}
location = /mirror {
internal;
proxy_pass http://test_backend;
}
Everything works perfect, except one thing. I need to log, that mirrored request delivered. If mirrored request not delivered, I need to get some error in log file. How to do this?