Hello,
I have setup a simple mirroring test with nginx. The requests are mirrored to my test server. However the requests are mirrored twice. What am I doing wrong? If I understand correctly they should only be received once.
Start server:
Make request:
Response of ncat mirror server:
I have setup a simple mirroring test with nginx. The requests are mirrored to my test server. However the requests are mirrored twice. What am I doing wrong? If I understand correctly they should only be received once.
NGINX:
location / {
mirror /test;
root /usr/local/www/nginx;
index index.html index.htm;
}
location /test {
internal;
proxy_pass http://127.0.0.1:3000;
}
Start server:
Bash:
ncat -k -l 127.0.0.1 3000
Make request:
Bash:
curl localhost
Response of ncat mirror server:
Bash:
GET /test HTTP/1.0
Host: 127.0.0.1:3000
Connection: close
User-Agent: curl/7.87.0
Accept: */*
GET /test HTTP/1.0
Host: 127.0.0.1:3000
Connection: close
User-Agent: curl/7.87.0
Accept: */*