웹마스터 팁
cloudflare에서 nginx 아이피 제대로 표시하기
2014.11.13 11:08
# Cloudflare
set_real_ip_from 199.27.128.0/21;
set_real_ip_from 173.245.48.0/20;
set_real_ip_from 103.21.244.0/22;
set_real_ip_from 103.22.200.0/22;
set_real_ip_from 103.31.4.0/22;
set_real_ip_from 141.101.64.0/18;
set_real_ip_from 108.162.192.0/18;
set_real_ip_from 190.93.240.0/20;
set_real_ip_from 188.114.96.0/20;
set_real_ip_from 197.234.240.0/22;
set_real_ip_from 198.41.128.0/17;
set_real_ip_from 162.158.0.0/15;
set_real_ip_from 104.16.0.0/12;
real_ip_header CF-Connecting-IP;
ipv6
set_real_ip_from 2400:cb00::/32;
set_real_ip_from 2606:4700::/32;
set_real_ip_from 2803:f800::/32;
set_real_ip_from 2405:b500::/32;
set_real_ip_from 2405:8100::/32;
댓글 3
-
젠스튜디오
2014.11.28 08:55
-
쿨럭이
2015.05.27 12:55
이걸 어디에 붙여넣어야되나요?? ㅜㅜ
-
국가정보보안
2015.06.03 10:27
rpm 으로 nginx 설치하신경우는
/etc/nginx
nginx.conf 파일 안에
넣어주시면됩니다.
감사합니다