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 syntaxby arx - Nginx Mailing List - English
the important thing for me is the dns, the port is static and no server do the check, the problem that I don't know how it is calls the variable with what name the client makes the request (the dns that is invoked in the GET method by the client) present in access.log [14/Apr/2022:12:22:57 +0200] "GET /favicon.ico HTTP/1.1" 404 548 "http://DNS:PORT/" "Mozilla/5.0 (....by arx - Nginx Mailing List - English
like something like that server { listen port; location / { if ($http_host ~ "dnsinput:port") { proxy_buffering off; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $remote_addr; proxy_set_header Host $host; proxy_pass dnsoutput:port; } } } it gives me syntax error I get the input from the fileby arx - Nginx Mailing List - English
Hi guys, for security problems on my server, I should create a reverse proxy that allows only those who use the dns provided by me to be able to pass. practically I make a list with the incoming dns and I pass only those to my main server behind the reverse. is it possible to do this? thank you allby arx - Nginx Mailing List - English
hi, i would like to know more about the nginx worldby arx - New Member Introductions
![]() |
![]() |
![]() |
![]() |
![]() |