0

I'm trying to set the value of set_real_ip_from from a variable but I'm getting an error.

NGINX Config:

set $frontendIP "104.22.100.4/32";

set_real_ip_from 103.21.244.0/22; set_real_ip_from 103.22.200.0/22;

set_real_ip_from $frontendIP;


Error:

nginx: [emerg] host not found in set_real_ip_from "$frontendIP"

The problem is not in setting the variable, but set_real_ip_from returning an error.

Tailer
  • 121

0 Answers0