reverse proxy with dns control

arx nginx-forum at
Thu Apr 14 11:35:34 UTC 2022

I succeeded, practically the directives

roxy_buffering off;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host $host;

they had to be placed on top location  "if ($host ~ testdns) {

and under
location / {

now I should make an external file with all allowed dns I would like someone
to help me with the syntax

Posted at Nginx Forum:,293951,293959#msg-293959

More information about the nginx mailing list