Answer the question
In order to leave comments, you need to log in
How to beat $remote_addr in allow?
Good evening.
nginx is built with the "ngx_http_realip_module" module.
Access config says:
allow 127.0.0.1;
[allow на ipv4 и ipv6 сервера]
allow 199.27.128.0/21;
[allow на другие подсети cloudflare];
deny all;
set_real_ip_from 199.27.128.0/21;
[set_real_ip_from другие подсети cloudflare];
real_ip_header CF-Connecting-IP;
allow $remote_addr;
(since the client's ip is stored here) set $newuserip $remote_addr;
allow $newuserip;
nginx: [emerg] invalid parameter "$newuserip " in
nginx: [emerg] invalid parameter "$remote_addr" in
Answer the question
In order to leave comments, you need to log in
Just change the log format.
By the way, I have a question about cdn cloudflare: I noticed that while the file is downloaded by the first requester and it is uploaded to the cdn cache, no one else can download it. Connections per file just hang and wait. Then it is already distributed with cloudflare and everything is fine.
Have you experienced this? How are files thrown into the cache for you?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question