Closed nadzree closed 7 years ago
I have a problem when integrating geo to naxsi $naxsi_flag_learning.
My setting as below:
geo $learning_ip { default 0; 10.0.9.0/24 1; 10.0.5.0/24 1; } server { if ($learning_ip){ set $naxsi_flag_learning 1; } }
However the setting works fine if using $remote_addr
server { if ($remote_addr = '10.0.9.3'){ set $naxsi_flag_learning 1; } }
Issue solve after upgrading nginx and naxsi
I have a problem when integrating geo to naxsi $naxsi_flag_learning.
My setting as below:
However the setting works fine if using $remote_addr